diff options
-rwxr-xr-x | bitbake/bin/bitbake | 4 | ||||
-rwxr-xr-x | bitbake/lib/bb/main.py | 3 |
2 files changed, 5 insertions, 2 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()) |
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). |