diff options
author | jpakkane <jpakkane@gmail.com> | 2015-03-23 21:36:32 +0200 |
---|---|---|
committer | jpakkane <jpakkane@gmail.com> | 2015-03-23 21:36:32 +0200 |
commit | 85132e894860b54c39f29c1491e353a12decc5f6 (patch) | |
tree | d43ddcf0bc654e5a6a08fe2543dc08288b78ef52 /modules | |
parent | 558f930d8111a2fd93dbf11777ced60f34343e3e (diff) | |
parent | db2b7601c85a7c5f96e8d87cee74d318bce9a367 (diff) | |
download | meson-85132e894860b54c39f29c1491e353a12decc5f6.zip meson-85132e894860b54c39f29c1491e353a12decc5f6.tar.gz meson-85132e894860b54c39f29c1491e353a12decc5f6.tar.bz2 |
Merge pull request #70 from ignatenkobrain/rpm
modules/rpm: workaround when ext_prog not found locally
Diffstat (limited to 'modules')
-rw-r--r-- | modules/rpm.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/rpm.py b/modules/rpm.py index 19f69f2..cbd92af 100644 --- a/modules/rpm.py +++ b/modules/rpm.py @@ -100,7 +100,10 @@ class RPMModule: 'You can use following command to find package which contains this lib:', mlog.bold('dnf provides %s' % lib.fullpath)) for prog in state.environment.coredata.ext_progs.values(): - fn.write('BuildRequires: %s\n' % ' '.join(prog.fullpath)) + if not prog.found(): + fn.write('BuildRequires: /usr/bin/%s # FIXME\n' % prog.get_name()) + else: + fn.write('BuildRequires: %s\n' % ' '.join(prog.fullpath)) fn.write('BuildRequires: meson\n') fn.write('\n') fn.write('%description\n') |