diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2017-03-11 06:22:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-23 13:19:50 +0000 |
commit | 9fe7a69535f9443175da8289633a761f58c372ff (patch) | |
tree | 5962c370ed7d911d87d967c1676ae4330fa5a477 /bitbake/bin/bitbake-diffsigs | |
parent | ea7faf7a05a652f169905ae983a3c3126a8f1c69 (diff) | |
download | poky-9fe7a69535f9443175da8289633a761f58c372ff.tar.gz |
bitbake: bitbake-diffsigs: Add debug support
Currently shows the name of the signature files that were found when
--task is used.
(Bitbake rev: 751b06c25d22eea8240f9429cb49874082245e52)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-diffsigs')
-rwxr-xr-x | bitbake/bin/bitbake-diffsigs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs index 527d2c7a9c..c087f99bc5 100755 --- a/bitbake/bin/bitbake-diffsigs +++ b/bitbake/bin/bitbake-diffsigs | |||
@@ -94,6 +94,8 @@ def find_compare_task(bbhandler, pn, taskname): | |||
94 | return recout | 94 | return recout |
95 | 95 | ||
96 | # Recurse into signature comparison | 96 | # Recurse into signature comparison |
97 | logger.debug("Signature file (previous): %s" % latestfiles[0]) | ||
98 | logger.debug("Signature file (latest): %s" % latestfiles[1]) | ||
97 | output = bb.siggen.compare_sigfiles(latestfiles[0], latestfiles[1], recursecb) | 99 | output = bb.siggen.compare_sigfiles(latestfiles[0], latestfiles[1], recursecb) |
98 | if output: | 100 | if output: |
99 | print('\n'.join(output)) | 101 | print('\n'.join(output)) |
@@ -108,12 +110,19 @@ parser = optparse.OptionParser( | |||
108 | %prog sigdatafile1 sigdatafile2 | 110 | %prog sigdatafile1 sigdatafile2 |
109 | %prog sigdatafile1""") | 111 | %prog sigdatafile1""") |
110 | 112 | ||
113 | parser.add_option("-D", "--debug", | ||
114 | help = "enable debug", | ||
115 | action = "store_true", dest="debug", default = False) | ||
116 | |||
111 | parser.add_option("-t", "--task", | 117 | parser.add_option("-t", "--task", |
112 | help = "find the signature data files for last two runs of the specified task and compare them", | 118 | help = "find the signature data files for last two runs of the specified task and compare them", |
113 | action="store", dest="taskargs", nargs=2, metavar='recipename taskname') | 119 | action="store", dest="taskargs", nargs=2, metavar='recipename taskname') |
114 | 120 | ||
115 | options, args = parser.parse_args(sys.argv) | 121 | options, args = parser.parse_args(sys.argv) |
116 | 122 | ||
123 | if options.debug: | ||
124 | logger.setLevel(logging.DEBUG) | ||
125 | |||
117 | if options.taskargs: | 126 | if options.taskargs: |
118 | with bb.tinfoil.Tinfoil() as tinfoil: | 127 | with bb.tinfoil.Tinfoil() as tinfoil: |
119 | tinfoil.prepare(config_only=True) | 128 | tinfoil.prepare(config_only=True) |