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:
parent
d2081f2a21
commit
d2ae92b4b3
@ -50,7 +50,7 @@ class LoraxDownloadCallback(yum.callbacks.DownloadBaseCallback):
|
|||||||
|
|
||||||
pkgno = 0
|
pkgno = 0
|
||||||
total = 0
|
total = 0
|
||||||
pkgname = "error"
|
pkgname = name
|
||||||
if match:
|
if match:
|
||||||
pkgno = int(match.group("pkgno"))
|
pkgno = int(match.group("pkgno"))
|
||||||
total = int(match.group("total"))
|
total = int(match.group("total"))
|
||||||
|
Loading…
Reference in New Issue
Block a user