Fix the yum download messages
This commit is contained in:
parent
6925e4d3b3
commit
d9f1f30944
@ -192,7 +192,7 @@ class LoraxDownloadCallback(yum.callbacks.DownloadBaseCallback):
|
|||||||
|
|
||||||
infolen, pkglen = len(info), len(pkgname)
|
infolen, pkglen = len(info), len(pkgname)
|
||||||
if (infolen + pkglen) > self.output.width:
|
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)
|
msg = "{0}<b>{1}</b>\r".format(info, pkgname)
|
||||||
self.output.write(msg)
|
self.output.write(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user