Only install RPM macros on platforms that have rpm installed.

pull/57/head
Jussi Pakkanen 10 years ago
parent 81754680f0
commit 4360e362da
  1. 9
      install_meson.py

@ -107,7 +107,8 @@ if os.path.exists(module_dir):
shutil.rmtree(module_dir)
shutil.copytree('modules', module_dir)
print('Installing RPM macros to %s.' % rpmmacros_dir)
outfilename = os.path.join(rpmmacros_dir, 'macros.meson')
shutil.copyfile('macros.meson', outfilename)
shutil.copystat('macros.meson', outfilename)
if os.path.exists(os.path.join('/usr', rpmmacros_dir)):
print('Installing RPM macros to %s.' % rpmmacros_dir)
outfilename = os.path.join(rpmmacros_dir, 'macros.meson')
shutil.copyfile('macros.meson', outfilename)
shutil.copystat('macros.meson', outfilename)

Loading…
Cancel
Save