fix ips 2018 vtune directory name (#6893)

This commit is contained in:
Gregory Lee 2018-01-11 07:51:14 -08:00 committed by Adam J. Stewart
parent 637165eef8
commit 5d49fe4b4c

View file

@ -341,7 +341,7 @@ def components(self):
# Intel(R) VTune(TM) Amplifier XE # Intel(R) VTune(TM) Amplifier XE
if '+vtune' in spec: if '+vtune' in spec:
components.append('intel-vtune-amplifier-xe') components.append('intel-vtune-amplifier')
return components return components
@ -397,6 +397,9 @@ def license_files(self):
if '+vtune' in spec: if '+vtune' in spec:
vtune_dir = 'vtune_amplifier_xe/licenses' vtune_dir = 'vtune_amplifier_xe/licenses'
if year >= 2018:
vtune_dir = 'vtune_amplifier/licenses'
directories.append(vtune_dir) directories.append(vtune_dir)
return [os.path.join(dir, 'license.lic') for dir in directories] return [os.path.join(dir, 'license.lic') for dir in directories]