[oe-commits] [bitbake] 03/04: bitbake-dumpsig: Add debug support
git at git.openembedded.org
git at git.openembedded.org
Wed Mar 22 14:55:36 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 84533c6dbd175a51f4dd59735161adfd10056888
Author: Peter Kjellerstedt <peter.kjellerstedt at axis.com>
AuthorDate: Sat Mar 11 06:22:16 2017 +0100
bitbake-dumpsig: Add debug support
Currently shows the name of the signature file that was found when
--task is used.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
bin/bitbake-dumpsig | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/bin/bitbake-dumpsig b/bin/bitbake-dumpsig
index b1fce25..38efd22 100755
--- a/bin/bitbake-dumpsig
+++ b/bin/bitbake-dumpsig
@@ -67,16 +67,24 @@ parser = optparse.OptionParser(
%prog -t recipename taskname
%prog sigdatafile""")
+parser.add_option("-D", "--debug",
+ help = "enable debug",
+ action = "store_true", dest="debug", default = False)
+
parser.add_option("-t", "--task",
help = "find the signature data file for the specified task",
action="store", dest="taskargs", nargs=2, metavar='recipename taskname')
options, args = parser.parse_args(sys.argv)
+if options.debug:
+ logger.setLevel(logging.DEBUG)
+
if options.taskargs:
tinfoil = bb.tinfoil.Tinfoil()
tinfoil.prepare(config_only = True)
file = find_siginfo_task(tinfoil, options.taskargs[0], options.taskargs[1])
+ logger.debug("Signature file: %s" % file)
elif len(args) == 1:
parser.print_help()
sys.exit(0)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list