summaryrefslogtreecommitdiffstats
path: root/bitbake
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-05-29 13:18:24 +0100
commitb94ebc582fa0ed0b4e695069b736c18a318cabef (patch)
treec9d9d4f4c9aaab8ed2c0d07b9f8593222d06da63 /bitbake
parent07600df4cb70d1307cdc9f2b73ef42edaeb8bc83 (diff)
downloadpoky-b94ebc582fa0ed0b4e695069b736c18a318cabef.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) (Bitbake rev: 8df9bf87fc67633c2be0ac21eec24a356b3d63ba) Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-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)