From 6c84e41a9ff3a3e86b822a5ffa6d58455cf899fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Tue, 14 Jun 2005 10:17:35 +0000 Subject: [PATCH] =?UTF-8?q?build.py=20i=C3=A7erisindeki=20=C3=A7=C4=B1kt?= =?UTF-8?q?=C4=B1=20=C3=A7a=C4=9Fr=C4=B1lar=C4=B1=20hi=C3=A7=20ho=C5=9Fuma?= =?UTF-8?q?=20gitmiyor.=20Bir=20ara=20ilgilenece=C4=9Fim.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pisi/build.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pisi/build.py b/src/pisi/build.py index d4106a58..f4e0d5aa 100644 --- a/src/pisi/build.py +++ b/src/pisi/build.py @@ -17,6 +17,9 @@ class PisiBuildError(Exception): pass # FIXME: this eventually has to go to ui module +# Infact all ui calls has nothing to do with this build process. +# There more of them in PisiBuild... +# And maybe we should consider moving PisiBuild.build() back to pisi-build CLI too. def displayProgress(pd): out = '\r%-30.30s %3d%% %12.2f %s' % \ (pd['filename'], pd['percent'], pd['rate'], pd['symbol']) @@ -60,7 +63,12 @@ class PisiBuild: if percentHook: fetch.percentHook = percentHook - fetch.fetch() + + fetch.fetch() + + # FIXME: What a ugly hack! We should really find a cleaner way for output. + if percentHook: + ui.info('\n') def unpackArchive(self): type = self.spec.source.archiveType