From d2ae92b4b3707d0e5e829152056f2f41888c8e42 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 31 Jan 2013 10:06:14 -0800 Subject: [PATCH] yum changed the callback info It used to give us (x/y) packagename, but now it only sends package name. This was changed in yum commit 7e8c76173. For now default to showing the zeros along with the package name so that it doesn't look like an error. --- 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 d87a4da2..ea0ef07d 100644 --- a/src/pylorax/yumhelper.py +++ b/src/pylorax/yumhelper.py @@ -50,7 +50,7 @@ class LoraxDownloadCallback(yum.callbacks.DownloadBaseCallback): pkgno = 0 total = 0 - pkgname = "error" + pkgname = name if match: pkgno = int(match.group("pkgno")) total = int(match.group("total"))