summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-06-10 09:14:39 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:36 +0100
commit6be4fa575a36c6c1cd3cb933fafd51dd3bd90c71 (patch)
tree2fd64fbda871dbb081980c3c840b1320af0ecd05 /bitbake/lib/bb/build.py
parentce42c24d700e6f61dc51942631587d8ae07b12ea (diff)
downloadpoky-6be4fa575a36c6c1cd3cb933fafd51dd3bd90c71.tar.gz
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 <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r--bitbake/lib/bb/build.py2
1 files changed, 1 insertions, 1 deletions
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):
125 # Setup logfiles 125 # Setup logfiles
126 t = data.getVar('T', d, 1) 126 t = data.getVar('T', d, 1)
127 if not t: 127 if not t:
128 bb.msg.fatal(bb.msg.domain.Build, "T not set") 128 raise SystemExit("T variable not set, unable to build")
129 bb.utils.mkdirhier(t) 129 bb.utils.mkdirhier(t)
130 logfile = "%s/log.%s.%s" % (t, func, str(os.getpid())) 130 logfile = "%s/log.%s.%s" % (t, func, str(os.getpid()))
131 runfile = "%s/run.%s.%s" % (t, func, str(os.getpid())) 131 runfile = "%s/run.%s.%s" % (t, func, str(os.getpid()))