From 64b04685b6fd029f2f70f7017bfd51d26ccb0d11 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 29 Jul 2009 14:33:14 +0100 Subject: bitbake: Add a --revisions-changed commandline option to indicate when floating srcrevs have changed Signed-off-by: Richard Purdie --- bitbake-dev/lib/bb/command.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'bitbake-dev/lib/bb/command.py') diff --git a/bitbake-dev/lib/bb/command.py b/bitbake-dev/lib/bb/command.py index 9226a2772..e7c3770ff 100644 --- a/bitbake-dev/lib/bb/command.py +++ b/bitbake-dev/lib/bb/command.py @@ -233,6 +233,14 @@ class CommandsAsync: command.finishAsyncCommand() parseFiles.needcache = True + def compareRevisions(self, command, params): + """ + Parse the .bb files + """ + command.cooker.compareRevisions() + command.finishAsyncCommand() + compareRevisions.needcache = True + # # Events # @@ -251,3 +259,14 @@ class CookerCommandFailed(bb.event.Event): def __init__(self, data, error): bb.event.Event.__init__(self, data) self.error = error + +class CookerCommandSetExitCode(bb.event.Event): + """ + Set the exit code for a cooker command + """ + def __init__(self, data, exitcode): + bb.event.Event.__init__(self, data) + self.exitcode = int(exitcode) + + + -- cgit v1.2.3