diff options
Diffstat (limited to 'bitbake-dev/lib/bb/cooker.py')
-rw-r--r-- | bitbake-dev/lib/bb/cooker.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/cooker.py b/bitbake-dev/lib/bb/cooker.py index bec6c3535c..b2b237b4c7 100644 --- a/bitbake-dev/lib/bb/cooker.py +++ b/bitbake-dev/lib/bb/cooker.py | |||
@@ -147,6 +147,8 @@ class BBCooker: | |||
147 | self.commandlineAction = ["showEnvironment", self.configuration.buildfile] | 147 | self.commandlineAction = ["showEnvironment", self.configuration.buildfile] |
148 | elif self.configuration.buildfile is not None: | 148 | elif self.configuration.buildfile is not None: |
149 | self.commandlineAction = ["buildFile", self.configuration.buildfile, self.configuration.cmd] | 149 | self.commandlineAction = ["buildFile", self.configuration.buildfile, self.configuration.cmd] |
150 | elif self.configuration.revisions_changed: | ||
151 | self.commandlineAction = ["compareRevisions"] | ||
150 | elif self.configuration.show_versions: | 152 | elif self.configuration.show_versions: |
151 | self.commandlineAction = ["showVersions"] | 153 | self.commandlineAction = ["showVersions"] |
152 | elif self.configuration.parse_only: | 154 | elif self.configuration.parse_only: |
@@ -241,6 +243,10 @@ class BBCooker: | |||
241 | 243 | ||
242 | bb.msg.plain("%-35s %25s %25s" % (p, lateststr, prefstr)) | 244 | bb.msg.plain("%-35s %25s %25s" % (p, lateststr, prefstr)) |
243 | 245 | ||
246 | def compareRevisions(self): | ||
247 | ret = bb.fetch.fetcher_compare_revisons(self.configuration.data) | ||
248 | bb.event.fire(bb.command.CookerCommandSetExitCode(self.configuration.event_data, ret)) | ||
249 | |||
244 | def showEnvironment(self, buildfile = None, pkgs_to_build = []): | 250 | def showEnvironment(self, buildfile = None, pkgs_to_build = []): |
245 | """ | 251 | """ |
246 | Show the outer or per-package environment | 252 | Show the outer or per-package environment |