diff options
-rwxr-xr-x | 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 b1fce2510d..38efd22864 100755 --- a/bitbake/bin/bitbake-dumpsig +++ b/bitbake/bin/bitbake-dumpsig | |||
@@ -67,16 +67,24 @@ parser = optparse.OptionParser( | |||
67 | %prog -t recipename taskname | 67 | %prog -t recipename taskname |
68 | %prog sigdatafile""") | 68 | %prog sigdatafile""") |
69 | 69 | ||
70 | parser.add_option("-D", "--debug", | ||
71 | help = "enable debug", | ||
72 | action = "store_true", dest="debug", default = False) | ||
73 | |||
70 | parser.add_option("-t", "--task", | 74 | parser.add_option("-t", "--task", |
71 | help = "find the signature data file for the specified task", | 75 | help = "find the signature data file for the specified task", |
72 | action="store", dest="taskargs", nargs=2, metavar='recipename taskname') | 76 | action="store", dest="taskargs", nargs=2, metavar='recipename taskname') |
73 | 77 | ||
74 | options, args = parser.parse_args(sys.argv) | 78 | options, args = parser.parse_args(sys.argv) |
75 | 79 | ||
80 | if options.debug: | ||
81 | logger.setLevel(logging.DEBUG) | ||
82 | |||
76 | if options.taskargs: | 83 | if options.taskargs: |
77 | tinfoil = bb.tinfoil.Tinfoil() | 84 | tinfoil = bb.tinfoil.Tinfoil() |
78 | tinfoil.prepare(config_only = True) | 85 | tinfoil.prepare(config_only = True) |
79 | file = find_siginfo_task(tinfoil, options.taskargs[0], options.taskargs[1]) | 86 | file = find_siginfo_task(tinfoil, options.taskargs[0], options.taskargs[1]) |
87 | logger.debug("Signature file: %s" % file) | ||
80 | elif len(args) == 1: | 88 | elif len(args) == 1: |
81 | parser.print_help() | 89 | parser.print_help() |
82 | sys.exit(0) | 90 | sys.exit(0) |