summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-02 12:05:51 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:46 +0000
commit7481c11e34d177ef54b537ca477df88ee40e5602 (patch)
treef55b3ed24595a87f16a712cec1bbf40db8da27de /bitbake
parentc4e07bc0338a3c51cc811c7c837daf9b93772e5f (diff)
downloadopenembedded-core-7481c11e34d177ef54b537ca477df88ee40e5602.tar.gz
openembedded-core-7481c11e34d177ef54b537ca477df88ee40e5602.tar.bz2
openembedded-core-7481c11e34d177ef54b537ca477df88ee40e5602.tar.xz
openembedded-core-7481c11e34d177ef54b537ca477df88ee40e5602.zip
Don't show a traceback for a python version error
(Bitbake rev: 44c325306e55336b7b416fd88b39874012a3f603) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/bin/bitbake5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index 533886842..821213068 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -30,7 +30,10 @@ sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),
import optparse
import warnings
from traceback import format_exception
-import bb
+try:
+ import bb
+except RuntimeError, exc:
+ sys.exit(str(exc))
from bb import event
import bb.msg
from bb import cooker