summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-07-27 14:51:49 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-27 15:14:20 +0100
commitd4c3ace09790a18e240c4aea655e41ecee786e1b (patch)
tree4dec90374f0f12cb1c3b9f12faadff12f87b4749 /bitbake/lib
parent0342c4270e8913ee967cc29f1c32304ea9edb1d0 (diff)
downloadpoky-d4c3ace09790a18e240c4aea655e41ecee786e1b.tar.gz
bitbake: bitbake-diffsigs: fix regression after recent server changes
We were bridging the gap between the server and UI here by calling a bb.siggen.find_siginfo, a function defined and set on that module from the metadata. This worked from the UI side before but since the recent server changes is no longer accessible. Create a new command so this can execute on the server side and return the result by way of a new event. (We're still running compare_sigfiles() on the signature generator but that isn't quite the same thing and does still work.) Fixes [YOCTO #11844]. (Bitbake rev: fdcea991baa4f83d9c98d468d7b49c8c388a4a15) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/command.py11
-rw-r--r--bitbake/lib/bb/event.py8
2 files changed, 19 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 0e0a35af69..c44c7a6a5e 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -746,3 +746,14 @@ class CommandsAsync:
746 command.finishAsyncCommand() 746 command.finishAsyncCommand()
747 clientComplete.needcache = False 747 clientComplete.needcache = False
748 748
749 def findSigInfo(self, command, params):
750 """
751 Find signature info files via the signature generator
752 """
753 pn = params[0]
754 taskname = params[1]
755 sigs = params[2]
756 res = bb.siggen.find_siginfo(pn, taskname, sigs, command.cooker.data)
757 bb.event.fire(bb.event.FindSigInfoResult(res), command.cooker.data)
758 command.finishAsyncCommand()
759 findSigInfo.needcache = False
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py
index 59cca61424..3827dcfba4 100644
--- a/bitbake/lib/bb/event.py
+++ b/bitbake/lib/bb/event.py
@@ -819,3 +819,11 @@ class NetworkTestFailed(Event):
819 """ 819 """
820 Event to indicate network test has failed 820 Event to indicate network test has failed
821 """ 821 """
822
823class FindSigInfoResult(Event):
824 """
825 Event to return results from findSigInfo command
826 """
827 def __init__(self, result):
828 Event.__init__(self)
829 self.result = result