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/lib | |
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/lib')
-rwxr-xr-x | bitbake/lib/bb/main.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index 2019d5014b..49dc8d5b59 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py | |||
@@ -36,7 +36,6 @@ from bb import ui | |||
36 | from bb import server | 36 | from bb import server |
37 | from bb import cookerdata | 37 | from bb import cookerdata |
38 | 38 | ||
39 | __version__ = "1.27.0" | ||
40 | logger = logging.getLogger("BitBake") | 39 | logger = logging.getLogger("BitBake") |
41 | 40 | ||
42 | class BBMainException(Exception): | 41 | class BBMainException(Exception): |
@@ -83,7 +82,7 @@ class BitBakeConfigParameters(cookerdata.ConfigParameters): | |||
83 | 82 | ||
84 | def parseCommandLine(self, argv=sys.argv): | 83 | def parseCommandLine(self, argv=sys.argv): |
85 | parser = optparse.OptionParser( | 84 | parser = optparse.OptionParser( |
86 | version = "BitBake Build Tool Core version %s, %%prog version %s" % (bb.__version__, __version__), | 85 | version = "BitBake Build Tool Core version %s" % bb.__version__, |
87 | usage = """%prog [options] [recipename/target ...] | 86 | usage = """%prog [options] [recipename/target ...] |
88 | 87 | ||
89 | Executes the specified task (default is 'build') for a given set of target recipes (.bb files). | 88 | Executes the specified task (default is 'build') for a given set of target recipes (.bb files). |