[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5279/8267] bitbake: bitbake-dumpsig: Add debug support
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 5279/8267] bitbake: bitbake-dumpsig: Add debug support
- Date: Sun, 17 Dec 2017 03:13:00 +0000 (UTC)
commit ea7faf7a05a652f169905ae983a3c3126a8f1c69
Author: Peter Kjellerstedt <peter kjellerstedt axis com>
Date: Sat Mar 11 06:22:16 2017 +0100
bitbake: bitbake-dumpsig: Add debug support
Currently shows the name of the signature file that was found when
--task is used.
(Bitbake rev: 84533c6dbd175a51f4dd59735161adfd10056888)
Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>
bitbake/bin/bitbake-dumpsig | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/bitbake/bin/bitbake-dumpsig b/bitbake/bin/bitbake-dumpsig
index b1fce25..38efd22 100755
--- a/bitbake/bin/bitbake-dumpsig
+++ b/bitbake/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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]