From: Chris Larson Date: Thu, 10 Jun 2010 16:14:39 +0000 (-0700) Subject: Switch a fatal usage to SystemExit ("T" not set) X-Git-Tag: 2011-1~5467 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=6be4fa575a36c6c1cd3cb933fafd51dd3bd90c71;p=openembedded-core.git Switch a fatal usage to SystemExit ("T" not set) This failure is one the *user* needs to see, as it may have to do with their setup, but where they don't need to see a traceback and all, since they're not developers, so I think SystemExit is appropriate here. (Bitbake rev: e3cc9bc7b6ef1a2eca78235790a051329bceb9a4) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index c6d4060575..1f4107fb65 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -125,7 +125,7 @@ def exec_func(func, d, dirs = None): # Setup logfiles t = data.getVar('T', d, 1) if not t: - bb.msg.fatal(bb.msg.domain.Build, "T not set") + raise SystemExit("T variable not set, unable to build") bb.utils.mkdirhier(t) logfile = "%s/log.%s.%s" % (t, func, str(os.getpid())) runfile = "%s/run.%s.%s" % (t, func, str(os.getpid()))