aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/rpm.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-02-19 03:19:13 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-02-19 03:49:31 +0530
commit7e805a019ae4d923403af8032776c0c302e3a50c (patch)
treef235ff5c0039b8e43469dce0d9606bb30a722595 /mesonbuild/modules/rpm.py
parent280346da3ac5904ec097afe89ef45ad34bd4a173 (diff)
downloadmeson-7e805a019ae4d923403af8032776c0c302e3a50c.zip
meson-7e805a019ae4d923403af8032776c0c302e3a50c.tar.gz
meson-7e805a019ae4d923403af8032776c0c302e3a50c.tar.bz2
find_program: Fix implementation of .path()
And actually test that prog.path() works. The earlier test was just running the command without checking if it succeeded. Also make everything use prog.get_command() or get_path() instead of accessing the internal member prog.fullpath directly.
Diffstat (limited to 'mesonbuild/modules/rpm.py')
-rw-r--r--mesonbuild/modules/rpm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/rpm.py b/mesonbuild/modules/rpm.py
index bd8a3c4..b967863 100644
--- a/mesonbuild/modules/rpm.py
+++ b/mesonbuild/modules/rpm.py
@@ -108,7 +108,7 @@ class RPMModule(ExtensionModule):
fn.write('BuildRequires: %%{_bindir}/%s # FIXME\n' %
prog.get_name())
else:
- fn.write('BuildRequires: %s\n' % ' '.join(prog.fullpath))
+ fn.write('BuildRequires: {}\n'.format(prog.get_path()))
fn.write('BuildRequires: meson\n')
fn.write('\n')
fn.write('%description\n')