diff options
author | Jacob Kroon <jacob.kroon@mikrodidakt.se> | 2014-04-26 17:05:30 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-29 13:17:48 +0100 |
commit | 8df9bf87fc67633c2be0ac21eec24a356b3d63ba (patch) | |
tree | 8fb476299a9444d3a56971b510968f5fa491d5c4 | |
parent | f19f3bf10af52b1610a35bfb47308ff48a5038b1 (diff) | |
download | bitbake-8df9bf87fc67633c2be0ac21eec24a356b3d63ba.tar.gz |
bitbake-diffsigs: Fix runtime error when no arguments are given
If bitbake-diffsigs is run without arguments it will error:
Traceback (most recent call last):
File "./bin/bitbake-diffsigs", line 121, in <module>
if output:
NameError: name 'output' is not defined
Fix this by moving the check for output into the inner else-clause.
(Bitbake rev: 7d3545a66863ad7183a7650b2af57eee091c45ae)
Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bin/bitbake-diffsigs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/bitbake-diffsigs b/bin/bitbake-diffsigs index 78757b0aa..08ae00db0 100755 --- a/bin/bitbake-diffsigs +++ b/bin/bitbake-diffsigs @@ -118,5 +118,5 @@ else: logger.error('Invalid signature data - ensure you are specifying sigdata/siginfo files') sys.exit(1) - if output: - print '\n'.join(output) + if output: + print '\n'.join(output) |