summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorJacob Kroon <jacob.kroon@mikrodidakt.se>2014-04-26 17:05:30 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-27 01:27:55 +0100
commita688c9cbab43179a92c8115cae5095817cafc0ea (patch)
treef5d5b1b72020530f5d135a27db03aa8045ed13df /bitbake/bin
parentd10353039eec600313dc6aabd308cccbbc758237 (diff)
downloadpoky-a688c9cbab43179a92c8115cae5095817cafc0ea.tar.gz
bitbake: 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>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake-diffsigs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs
index 78757b0aae..08ae00db0f 100755
--- a/bitbake/bin/bitbake-diffsigs
+++ b/bitbake/bin/bitbake-diffsigs
@@ -118,5 +118,5 @@ else:
118 logger.error('Invalid signature data - ensure you are specifying sigdata/siginfo files') 118 logger.error('Invalid signature data - ensure you are specifying sigdata/siginfo files')
119 sys.exit(1) 119 sys.exit(1)
120 120
121 if output: 121 if output:
122 print '\n'.join(output) 122 print '\n'.join(output)