waf: cope with rules with no inputs
authorAndrew Tridgell <tridge@samba.org>
Fri, 29 Oct 2010 00:53:15 +0000 (11:53 +1100)
committerAndrew Tridgell <tridge@samba.org>
Sat, 30 Oct 2010 12:49:00 +0000 (23:49 +1100)
when we display a rule with no inputs, just call the original display
function

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

buildtools/wafsamba/wafsamba.py

index d19b045da455cc44c96888d551a2bb242b992393..d4acd19ba5704237c48f11a60c16a4d3de438f87 100644 (file)
@@ -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:]