diff options
-rw-r--r-- | manual tests/5 rpm/meson.build | 1 | ||||
-rw-r--r-- | modules/rpm.py | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/manual tests/5 rpm/meson.build b/manual tests/5 rpm/meson.build index ebbbdfd..131da39 100644 --- a/manual tests/5 rpm/meson.build +++ b/manual tests/5 rpm/meson.build @@ -2,6 +2,7 @@ project('test spec', 'c') rpm = import('rpm') dependency('zlib') +find_program('nonexistprog', required : false) lib = shared_library('mesontest_shared', ['lib.c', 'lib.h'], version : '0.1', soversion : '0', diff --git a/modules/rpm.py b/modules/rpm.py index 4ae1cc6..7171738 100644 --- a/modules/rpm.py +++ b/modules/rpm.py @@ -95,7 +95,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') |