aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2009-10-17 19:02:09 +0100
committerRichard Purdie <rpurdie@rpsys.net>2009-10-17 19:22:52 +0100
commit6252c7d5c1c7123d16fc3c7db2edc6751420f12c (patch)
treea906dd23c74dd626152ac097a0e18c184b7da69d /lib/bb/cooker.py
parentc4b18ff5e26e4f52336fe1fc5a0e215e4d4d9aaa (diff)
downloadbitbake-6252c7d5c1c7123d16fc3c7db2edc6751420f12c.tar.gz
Add a compare-versions command which returns whether the SRCREV versions have changed since bitbake was last run (from Poky)
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index bec6c3535..b2b237b4c 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -147,6 +147,8 @@ class BBCooker:
self.commandlineAction = ["showEnvironment", self.configuration.buildfile]
elif self.configuration.buildfile is not None:
self.commandlineAction = ["buildFile", self.configuration.buildfile, self.configuration.cmd]
+ elif self.configuration.revisions_changed:
+ self.commandlineAction = ["compareRevisions"]
elif self.configuration.show_versions:
self.commandlineAction = ["showVersions"]
elif self.configuration.parse_only:
@@ -241,6 +243,10 @@ class BBCooker:
bb.msg.plain("%-35s %25s %25s" % (p, lateststr, prefstr))
+ def compareRevisions(self):
+ ret = bb.fetch.fetcher_compare_revisons(self.configuration.data)
+ bb.event.fire(bb.command.CookerCommandSetExitCode(self.configuration.event_data, ret))
+
def showEnvironment(self, buildfile = None, pkgs_to_build = []):
"""
Show the outer or per-package environment