diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-29 14:33:14 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-29 14:33:14 +0100 |
commit | 64b04685b6fd029f2f70f7017bfd51d26ccb0d11 (patch) | |
tree | 5d525e2b58e5a9b27ea3096a0047770446baaf29 /bitbake-dev/lib/bb/command.py | |
parent | 231b5f67844da39949e04ae53557cea04aacffdd (diff) | |
download | poky-64b04685b6fd029f2f70f7017bfd51d26ccb0d11.tar.gz |
bitbake: Add a --revisions-changed commandline option to indicate when floating srcrevs have changed
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake-dev/lib/bb/command.py')
-rw-r--r-- | bitbake-dev/lib/bb/command.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/command.py b/bitbake-dev/lib/bb/command.py index 9226a2772f..e7c3770ffc 100644 --- a/bitbake-dev/lib/bb/command.py +++ b/bitbake-dev/lib/bb/command.py | |||
@@ -233,6 +233,14 @@ class CommandsAsync: | |||
233 | command.finishAsyncCommand() | 233 | command.finishAsyncCommand() |
234 | parseFiles.needcache = True | 234 | parseFiles.needcache = True |
235 | 235 | ||
236 | def compareRevisions(self, command, params): | ||
237 | """ | ||
238 | Parse the .bb files | ||
239 | """ | ||
240 | command.cooker.compareRevisions() | ||
241 | command.finishAsyncCommand() | ||
242 | compareRevisions.needcache = True | ||
243 | |||
236 | # | 244 | # |
237 | # Events | 245 | # Events |
238 | # | 246 | # |
@@ -251,3 +259,14 @@ class CookerCommandFailed(bb.event.Event): | |||
251 | def __init__(self, data, error): | 259 | def __init__(self, data, error): |
252 | bb.event.Event.__init__(self, data) | 260 | bb.event.Event.__init__(self, data) |
253 | self.error = error | 261 | self.error = error |
262 | |||
263 | class CookerCommandSetExitCode(bb.event.Event): | ||
264 | """ | ||
265 | Set the exit code for a cooker command | ||
266 | """ | ||
267 | def __init__(self, data, exitcode): | ||
268 | bb.event.Event.__init__(self, data) | ||
269 | self.exitcode = int(exitcode) | ||
270 | |||
271 | |||
272 | |||