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.
This commit is contained in:
Brian C. Lane 2013-01-31 10:06:14 -08:00
parent d2081f2a21
commit d2ae92b4b3
1 changed files with 1 additions and 1 deletions

View File

@ -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"))