* [PATCH] bitbake-diffsigs: Fix runtime error when no arguments are given
@ 2014-04-26 15:05 Jacob Kroon
0 siblings, 0 replies; only message in thread
From: Jacob Kroon @ 2014-04-26 15:05 UTC (permalink / raw)
To: bitbake-devel
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.
Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se>
---
bin/bitbake-diffsigs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/bitbake-diffsigs b/bin/bitbake-diffsigs
index 78757b0..08ae00d 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)
--
1.9.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-26 15:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-26 15:05 [PATCH] bitbake-diffsigs: Fix runtime error when no arguments are given Jacob Kroon
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.