diff options
author | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-23 20:30:44 +0300 |
---|---|---|
committer | Igor Gnatenko <i.gnatenko.brain@gmail.com> | 2015-03-23 20:33:00 +0300 |
commit | db2b7601c85a7c5f96e8d87cee74d318bce9a367 (patch) | |
tree | 81452d4f2f6a2b6c20ebdb5752d8f0d942e26fc0 /manual tests | |
parent | a22172e7b3628d10790cab24690a5ceb3e9ed5a0 (diff) | |
download | meson-db2b7601c85a7c5f96e8d87cee74d318bce9a367.zip meson-db2b7601c85a7c5f96e8d87cee74d318bce9a367.tar.gz meson-db2b7601c85a7c5f96e8d87cee74d318bce9a367.tar.bz2 |
modules/rpm: workaround when ext_prog not found locally
Traceback (most recent call last):
File "../../../meson.py", line 184, in <module>
app.generate()
File "../../../meson.py", line 130, in generate
intr.run()
File "/home/brain/git/upstream/meson/interpreter.py", line 828, in run
self.evaluate_codeblock(self.ast)
File "/home/brain/git/upstream/meson/interpreter.py", line 850, in
evaluate_codeblock
raise e
File "/home/brain/git/upstream/meson/interpreter.py", line 844, in
evaluate_codeblock
self.evaluate_statement(cur)
File "/home/brain/git/upstream/meson/interpreter.py", line 897, in
evaluate_statement
return self.method_call(cur)
File "/home/brain/git/upstream/meson/interpreter.py", line 1620, in
method_call
return obj.method_call(method_name, args, kwargs)
File "/home/brain/git/upstream/meson/interpreter.py", line 625, in
method_call
value = fn(state, args, kwargs)
File "/home/brain/git/upstream/meson/modules/rpm.py", line 98, in
generate_spec_template
fn.write('BuildRequires: %s\n' % ' '.join(prog.fullpath))
TypeError: sequence item 0: expected str instance, NoneType found
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Diffstat (limited to 'manual tests')
-rw-r--r-- | manual tests/5 rpm/meson.build | 1 |
1 files changed, 1 insertions, 0 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', |