From d9f1f30944b66f164208c985f30ff154a141e475 Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Mon, 8 Nov 2010 15:31:18 +0100 Subject: [PATCH] Fix the yum download messages --- src/pylorax/yumhelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/yumhelper.py b/src/pylorax/yumhelper.py index 3ef29268..e3715185 100644 --- a/src/pylorax/yumhelper.py +++ b/src/pylorax/yumhelper.py @@ -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}{1}\r".format(info, pkgname) self.output.write(msg)