git.samba.org
/
mdw
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7720fac
)
waf: use Utils.WafError() instead of sys.exit(1)
author
Andrew Tridgell
<tridge@samba.org>
Wed, 9 Feb 2011 04:54:07 +0000
(15:54 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 18 Feb 2011 04:09:45 +0000
(15:09 +1100)
better to raise an expection than just exiting
buildtools/wafsamba/samba_deps.py
patch
|
blob
|
history
diff --git
a/buildtools/wafsamba/samba_deps.py
b/buildtools/wafsamba/samba_deps.py
index 188c2dd75f37cb165211047ebfc1a6e74d7256c8..02f23183e726223d78b12cac324baff1501e0ae0 100644
(file)
--- a/
buildtools/wafsamba/samba_deps.py
+++ b/
buildtools/wafsamba/samba_deps.py
@@
-288,8
+288,7
@@
def check_duplicate_sources(bld, tgt_list):
Logs.warn("WARNING: source %s is in more than one target: %s" % (s, subsystems[s].keys()))
for tname in subsystems[s]:
if len(subsystems[s][tname]) > 1:
- Logs.error("ERROR: source %s is in more than one subsystem of target '%s': %s" % (s, tname, subsystems[s][tname]))
- sys.exit(1)
+ raise Utils.WafError("ERROR: source %s is in more than one subsystem of target '%s': %s" % (s, tname, subsystems[s][tname]))
return ret