summaryrefslogtreecommitdiffstats
path: root/lib/bb
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:13 +0100
commitfdcea991baa4f83d9c98d468d7b49c8c388a4a15 (patch)
treef7c4cb22a69d184a58675db50a15d47f534ffd99 /lib/bb
parentb8f477de204ab5d0680b2b7c42370d13395be46c (diff)
downloadbitbake-contrib-fdcea991baa4f83d9c98d468d7b49c8c388a4a15.tar.gz
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]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r--lib/bb/command.py11
-rw-r--r--lib/bb/event.py8
2 files changed, 19 insertions, 0 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py
index 0e0a35af6..c44c7a6a5 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -746,3 +746,14 @@ class CommandsAsync:
command.finishAsyncCommand()
clientComplete.needcache = False
+ def findSigInfo(self, command, params):
+ """
+ Find signature info files via the signature generator
+ """
+ pn = params[0]
+ taskname = params[1]
+ sigs = params[2]
+ res = bb.siggen.find_siginfo(pn, taskname, sigs, command.cooker.data)
+ bb.event.fire(bb.event.FindSigInfoResult(res), command.cooker.data)
+ command.finishAsyncCommand()
+ findSigInfo.needcache = False
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 59cca6142..3827dcfba 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -819,3 +819,11 @@ class NetworkTestFailed(Event):
"""
Event to indicate network test has failed
"""
+
+class FindSigInfoResult(Event):
+ """
+ Event to return results from findSigInfo command
+ """
+ def __init__(self, result):
+ Event.__init__(self)
+ self.result = result