Only install RPM macros on platforms that have rpm installed.

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

@ -107,6 +107,7 @@ if os.path.exists(module_dir):
shutil.rmtree(module_dir)
shutil.copytree('modules', module_dir)
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)

Loading…
Cancel
Save