summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/bitbake13
1 files changed, 5 insertions, 8 deletions
diff --git a/bin/bitbake b/bin/bitbake
index 88ac8c34ca..b6f19ef27e 100755
--- a/bin/bitbake
+++ b/bin/bitbake
@@ -41,16 +41,13 @@ 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())
+ sys.exit(bitbake_main(BitBakeConfigParameters(sys.argv),
+ cookerdata.CookerConfiguration()))
except BBMainException as err:
- print >>sys.stderr, err
- ret = 1
+ sys.exit(err)
except bb.BBHandledException:
- ret = 1
+ sys.exit(1)
except Exception:
- ret = 1
import traceback
traceback.print_exc()
- sys.exit(ret)
-
+ sys.exit(1)