aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall_meson.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/install_meson.py b/install_meson.py
index 616b635..2c13046 100755
--- a/install_meson.py
+++ b/install_meson.py
@@ -107,7 +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)):
+if os.path.exists('/usr/bin/rpm'):
print('Installing RPM macros to %s.' % rpmmacros_dir)
outfilename = os.path.join(rpmmacros_dir, 'macros.meson')
os.makedirs(rpmmacros_dir, exist_ok=True)