From 372454c59aa18896ae5483c91bf34a1a2478aac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Wed, 27 Jul 2011 10:30:14 +0000 Subject: [PATCH] index: Print CR character at the end Otherwise, error messages are not displayed correctly. Still needs some tweaks for error/warning strings. --- pisi/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/index.py b/pisi/index.py index 810dd36d..488fb5bb 100644 --- a/pisi/index.py +++ b/pisi/index.py @@ -173,7 +173,7 @@ def add_package(params): try: path, deltas, repo_uri = params - ctx.ui.info("\r%-80.80s" % (_('Adding package to index: %s') % + ctx.ui.info("%-80.80s\r" % (_('Adding package to index: %s') % os.path.basename(path)), noln = True) package = pisi.package.Package(path, 'r') @@ -271,7 +271,7 @@ def add_spec(params): else: sf.source.sourceURI = util.removepathprefix(repo_uri, path) - ctx.ui.info("\r%-80.80s" % (_('Adding %s to source index') % + ctx.ui.info("%-80.80s\r" % (_('Adding %s to source index') % path), noln = True) return sf