summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-04-28 15:15:57 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-28 17:48:26 +0100
commit2fe7d8c574ddf6a30278cff1a5a5c4089dc56d6d (patch)
tree8cc0c93a991c64fecf77820270657d1f6a603985 /bin
parentc8e2a40c4e9865ebef9936d23644f2602a5c90f5 (diff)
downloadbitbake-contrib-2fe7d8c574ddf6a30278cff1a5a5c4089dc56d6d.tar.gz
bitbake-contrib-2fe7d8c574ddf6a30278cff1a5a5c4089dc56d6d.tar.bz2
bitbake-contrib-2fe7d8c574ddf6a30278cff1a5a5c4089dc56d6d.zip
bitbake: Check if bitbake versions match
Bitbake program and core versions must match. Moved __version__ from main.py back to bin/bitbake. Implemented check for version match in bin/bitbake. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> tbs Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bitbake4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/bitbake b/bin/bitbake
index 3e1ca6286c..88ac8c34ca 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -35,7 +35,11 @@ except RuntimeError as exc:
from bb import cookerdata
from bb.main import bitbake_main, BitBakeConfigParameters, BBMainException
+__version__ = "1.27.0"
+
if __name__ == "__main__":
+ if __version__ != bb.__version__:
+ sys.exit("Bitbake core version and program version mismatch!")
try:
ret = bitbake_main(BitBakeConfigParameters(sys.argv),
cookerdata.CookerConfiguration())