Rename parameters to match names that dnf uses

avoids 'Parameters differ from overridden method' warnings
This commit is contained in:
Alexander Todorov 2017-10-05 13:18:44 +03:00 committed by Brian C. Lane
parent ac1623d9cd
commit fdb7593cb0

View File

@ -66,14 +66,14 @@ class LoraxDownloadCallback(dnf.callback.DownloadProgress):
} }
self.output.write(msg % vals) self.output.write(msg % vals)
def end(self, payload, status, err_msg): def end(self, payload, status, msg):
nevra = str(payload) nevra = str(payload)
if status is dnf.callback.STATUS_OK: if status is dnf.callback.STATUS_OK:
self.downloads[nevra] = payload.download_size self.downloads[nevra] = payload.download_size
self.pkgno += 1 self.pkgno += 1
self._update() self._update()
return return
logger.critical("Failed to download '%s': %d - %s", nevra, status, err_msg) logger.critical("Failed to download '%s': %d - %s", nevra, status, msg)
def progress(self, payload, done): def progress(self, payload, done):
nevra = str(payload) nevra = str(payload)
@ -105,5 +105,5 @@ class LoraxRpmCallback(dnf.callback.TransactionProgress):
msg = "Performing post-installation setup tasks" msg = "Performing post-installation setup tasks"
logger.info(msg) logger.info(msg)
def error(self, err_msg): def error(self, message):
logger.warning(err_msg) logger.warning(message)