[oe-commits] [bitbake] 04/05: bitbake-diffsigs: fix traceback with no arguments

git at git.openembedded.org git at git.openembedded.org
Mon Apr 10 22:54:10 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 9011366689b26305281fcb2d412dcacece917e18
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Tue Apr 11 10:35:39 2017 +1200

    bitbake-diffsigs: fix traceback with no arguments
    
    In the move over to argparse we've made the two signature file arguments
    optional and thus if -t is not in use we need to explicitly check if at
    least one signature file has been specified - and if not, show an error
    and the command-line help.
    
    Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 bin/bitbake-diffsigs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bin/bitbake-diffsigs b/bin/bitbake-diffsigs
index 884be1e..eb2f859 100755
--- a/bin/bitbake-diffsigs
+++ b/bin/bitbake-diffsigs
@@ -147,6 +147,10 @@ else:
             output = bb.siggen.compare_sigfiles(options.sigdatafile1, options.sigdatafile2, color=color)
         elif options.sigdatafile1:
             output = bb.siggen.dump_sigfile(options.sigdatafile1)
+        else:
+            logger.error('Must specify signature file(s) or -t/--task')
+            parser.print_help()
+            sys.exit(1)
     except IOError as e:
         logger.error(str(e))
         sys.exit(1)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list