Fix the yum download messages

This commit is contained in:
Martin Gracik 2010-11-08 15:31:18 +01:00
parent 6925e4d3b3
commit d9f1f30944

View File

@ -192,7 +192,7 @@ class LoraxDownloadCallback(yum.callbacks.DownloadBaseCallback):
infolen, pkglen = len(info), len(pkgname)
if (infolen + pkglen) > self.output.width:
pkgname = "{0}...".format(pkg[:self.output.width-infolen-3])
pkgname = "{0}...".format(pkgname[:self.output.width-infolen-3])
msg = "{0}<b>{1}</b>\r".format(info, pkgname)
self.output.write(msg)