summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-29 11:53:15 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-30 23:49:00 +1100
commitd1e94980bf76a7dc07b01979c5d263fc32dccbf8 (patch)
tree47b0ac43dbb834d6f4dc9480a8f1c9f31529ba60
parentccbb77693cec4e612d839b2dca92f97aa05f342e (diff)
downloadsamba-d1e94980bf76a7dc07b01979c5d263fc32dccbf8.tar.gz
samba-d1e94980bf76a7dc07b01979c5d263fc32dccbf8.tar.bz2
samba-d1e94980bf76a7dc07b01979c5d263fc32dccbf8.zip
waf: cope with rules with no inputs
when we display a rule with no inputs, just call the original display function Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--buildtools/wafsamba/wafsamba.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index d19b045da4..d4acd19ba5 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -947,6 +947,9 @@ def samba_display(self):
if target_type in type_map:
return progress_display(self, type_map[target_type], self.name)
+ if len(self.inputs) == 0:
+ return Task.Task.old_display(self)
+
fname = self.inputs[0].bldpath(self.env)
if fname[0:3] == '../':
fname = fname[3:]