diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-08-27 21:44:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-07 12:10:44 +0100 |
commit | d5226c96d3c64bcfa8922327594663352703a8a8 (patch) | |
tree | cdf675fea864f33cc939be42753ca9e3d71e4c6e /bitbake/bin/bitbake-diffsigs | |
parent | 19d0abe14cd6590dc7a9d81f88c18833e1b35a1b (diff) | |
download | poky-d5226c96d3c64bcfa8922327594663352703a8a8.tar.gz |
bitbake: lib/bb/siggen.py: make signature dump/compare functions return a list
These functions become a little bit more reusable if they return a list
containing the output rather than just printing it.
(Bitbake rev: a0ad2a947b71abcc0a1244cf139b9e9dfd8ee049)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-diffsigs')
-rwxr-xr-x | bitbake/bin/bitbake-diffsigs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs index 5eb77ce59d..146cab8119 100755 --- a/bitbake/bin/bitbake-diffsigs +++ b/bitbake/bin/bitbake-diffsigs | |||
@@ -7,6 +7,9 @@ sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), ' | |||
7 | import bb.siggen | 7 | import bb.siggen |
8 | 8 | ||
9 | if len(sys.argv) > 2: | 9 | if len(sys.argv) > 2: |
10 | bb.siggen.compare_sigfiles(sys.argv[1], sys.argv[2]) | 10 | output = bb.siggen.compare_sigfiles(sys.argv[1], sys.argv[2]) |
11 | else: | 11 | else: |
12 | bb.siggen.dump_sigfile(sys.argv[1]) | 12 | output = bb.siggen.dump_sigfile(sys.argv[1]) |
13 | |||
14 | if output: | ||
15 | print '\n'.join(output) | ||