summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-08-27 21:44:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-07 12:10:44 +0100
commitd5226c96d3c64bcfa8922327594663352703a8a8 (patch)
treecdf675fea864f33cc939be42753ca9e3d71e4c6e /bitbake/bin
parent19d0abe14cd6590dc7a9d81f88c18833e1b35a1b (diff)
downloadpoky-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-xbitbake/bin/bitbake-diffsigs7
-rwxr-xr-xbitbake/bin/bitbake-dumpsig4
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])), '
7import bb.siggen 7import bb.siggen
8 8
9if len(sys.argv) > 2: 9if 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])
11else: 11else:
12 bb.siggen.dump_sigfile(sys.argv[1]) 12 output = bb.siggen.dump_sigfile(sys.argv[1])
13
14if 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
7import bb.siggen 7import bb.siggen
8 8
9bb.siggen.dump_sigfile(sys.argv[1]) 9output = bb.siggen.dump_sigfile(sys.argv[1])
10if output:
11 print '\n'.join(output)