From a688c9cbab43179a92c8115cae5095817cafc0ea Mon Sep 17 00:00:00 2001 From: Jacob Kroon Date: Sat, 26 Apr 2014 17:05:30 +0200 Subject: 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 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 Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-diffsigs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs index 78757b0..08ae00d 100755 --- a/bitbake/bin/bitbake-diffsigs +++ b/bitbake/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) -- cgit v1.1