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 | |
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')
-rwxr-xr-x | bitbake/bin/bitbake-diffsigs | 7 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-dumpsig | 4 |
2 files changed, 8 insertions, 3 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) | ||
diff --git a/bitbake/bin/bitbake-dumpsig b/bitbake/bin/bitbake-dumpsig index 59740c87c9..ccbc412583 100755 --- a/bitbake/bin/bitbake-dumpsig +++ b/bitbake/bin/bitbake-dumpsig | |||
@@ -6,4 +6,6 @@ sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), ' | |||
6 | 6 | ||
7 | import bb.siggen | 7 | import bb.siggen |
8 | 8 | ||
9 | bb.siggen.dump_sigfile(sys.argv[1]) | 9 | output = bb.siggen.dump_sigfile(sys.argv[1]) |
10 | if output: | ||
11 | print '\n'.join(output) | ||