index: Print CR character at the end

Otherwise, error messages are not displayed correctly. Still needs some
tweaks for error/warning strings.
This commit is contained in:
Fatih Aşıcı
2011-07-27 10:30:14 +00:00
parent 47c6a39e14
commit 372454c59a
+2 -2
View File
@@ -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