summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-29 10:01:34 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:15 +1000
commit6dc2b16859df8203485623f2995fdb37d19a5e75 (patch)
tree09f3ed1aa527a6f9f8d29722c009c0316c3fb83b /buildtools/wafsamba
parent3d4c99207dc21346e39ea3d6950be91bf0560598 (diff)
downloadsamba-6dc2b16859df8203485623f2995fdb37d19a5e75.tar.gz
samba-6dc2b16859df8203485623f2995fdb37d19a5e75.tar.bz2
samba-6dc2b16859df8203485623f2995fdb37d19a5e75.zip
build: fixed progress display
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/wafsamba.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index afe900befd..1abe94c42c 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -754,19 +754,21 @@ Build.BuildContext.PKG_CONFIG_FILES = PKG_CONFIG_FILES
# override the display of the compilation and linking messages
-def progress(self):
+def build_progress(self):
return "[%d/%d]" % (self.position[0], self.position[1])
def cc_display(self):
if Options.options.progress_bar != 0:
return Task.Task.display(self)
- fname = self.inputs[0].bldpath(self.env)[3:]
- return "%s Compiling %s\n" % (progress(self), fname)
+ fname = self.inputs[0].bldpath(self.env)
+ if fname[0:3] == '../':
+ fname = fname[3:]
+ return "%s Compiling %s\n" % (build_progress(self), fname)
Task.TaskBase.classes['cc'].display = cc_display
def link_display(self):
if Options.options.progress_bar != 0:
return Task.Task.display(self)
fname = self.outputs[0].bldpath(self.env)
- return "%s Linking %s\n" % (progress(self), fname)
+ return "%s Linking %s\n" % (build_progress(self), fname)
Task.TaskBase.classes['cc_link'].display = link_display