diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-04-28 15:15:57 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-29 10:59:53 +0100 |
commit | 37e46e49ddf71ebf588f565f041aaec13a802dfa (patch) | |
tree | 915686b04ab7a6927f40e9ff39172c50b40cf9b0 /bitbake/bin | |
parent | 47e2dbd89a92faca3e188d509c5629c59feca770 (diff) | |
download | poky-37e46e49ddf71ebf588f565f041aaec13a802dfa.tar.gz |
bitbake: 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.
(Bitbake rev: 2fe7d8c574ddf6a30278cff1a5a5c4089dc56d6d)
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 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 3e1ca6286c..88ac8c34ca 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -35,7 +35,11 @@ except RuntimeError as exc: | |||
35 | from bb import cookerdata | 35 | from bb import cookerdata |
36 | from bb.main import bitbake_main, BitBakeConfigParameters, BBMainException | 36 | from bb.main import bitbake_main, BitBakeConfigParameters, BBMainException |
37 | 37 | ||
38 | __version__ = "1.27.0" | ||
39 | |||
38 | if __name__ == "__main__": | 40 | if __name__ == "__main__": |
41 | if __version__ != bb.__version__: | ||
42 | sys.exit("Bitbake core version and program version mismatch!") | ||
39 | try: | 43 | try: |
40 | ret = bitbake_main(BitBakeConfigParameters(sys.argv), | 44 | ret = bitbake_main(BitBakeConfigParameters(sys.argv), |
41 | cookerdata.CookerConfiguration()) | 45 | cookerdata.CookerConfiguration()) |