summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-08 22:01:27 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-08 22:11:49 +1000
commitbaec7a6b9eb6cdb2d3a21e3a6c7b99e79703d39f (patch)
tree053e874db132c819a4a14678100985274843de4b /buildtools
parent4ca46c6b8dfd9d7450096fc16c6edd7a08f369e5 (diff)
downloadsamba-baec7a6b9eb6cdb2d3a21e3a6c7b99e79703d39f.tar.gz
samba-baec7a6b9eb6cdb2d3a21e3a6c7b99e79703d39f.tar.bz2
samba-baec7a6b9eb6cdb2d3a21e3a6c7b99e79703d39f.zip
build: the exceptions here are not useful
they just make the failure hard to spot
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/samba_deps.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildtools/wafsamba/samba_deps.py b/buildtools/wafsamba/samba_deps.py
index c52275e813..452120d657 100644
--- a/buildtools/wafsamba/samba_deps.py
+++ b/buildtools/wafsamba/samba_deps.py
@@ -18,7 +18,7 @@ def TARGET_ALIAS(bld, target, alias):
cache = LOCAL_CACHE(bld, 'TARGET_ALIAS')
if alias in cache:
print("Target alias %s already set to %s : newalias %s" % (alias, cache[alias], target))
- raise
+ sys.exit(1)
cache[alias] = target
Build.BuildContext.TARGET_ALIAS = TARGET_ALIAS
@@ -329,7 +329,7 @@ def build_direct_deps(bld, tgt_list):
if d == t.sname: continue
if not d in targets:
print("Unknown dependency %s in %s" % (d, t.sname))
- raise
+ sys.exit(1)
if targets[d] in [ 'EMPTY', 'DISABLED' ]:
continue
if targets[d] == 'SYSLIB':
@@ -823,7 +823,7 @@ def check_project_rules(bld):
t = bld.name_to_obj(tgt, bld.env)
if t is None:
print("Target %s of type %s has no task generator" % (tgt, type))
- raise
+ sys.exit(1)
tgt_list.append(t)
add_samba_attributes(bld, tgt_list)