dnf/dnf-4.0.4-rpm5-CALLBACK.patch

33 lines
1.6 KiB
Diff

Only in dnf-4.0.4/dnf/cli: output.py.orig
Only in dnf-4.0.4/dnf/cli: output.py.rej
diff -ru dnf-4.0.4.orig/dnf/yum/rpmtrans.py dnf-4.0.4/dnf/yum/rpmtrans.py
--- dnf-4.0.4.orig/dnf/yum/rpmtrans.py 2019-06-02 15:21:54.000000000 +0200
+++ dnf-4.0.4/dnf/yum/rpmtrans.py 2019-06-02 15:30:53.916853857 +0200
@@ -245,12 +245,8 @@
pass
elif what == rpm.RPMCALLBACK_TRANS_PROGRESS:
self._trans_progress(amount, total)
- elif what == rpm.RPMCALLBACK_ELEM_PROGRESS:
- # This callback type is issued every time the next transaction
- # element is about to be processed by RPM, before any other
- # callbacks are issued. "amount" carries the index of the element.
- self._elemProgress(key, amount)
elif what == rpm.RPMCALLBACK_INST_OPEN_FILE:
+ self._elemProgress(key, amount)
return self._instOpenFile(key)
elif what == rpm.RPMCALLBACK_INST_CLOSE_FILE:
self._instCloseFile(key)
@@ -268,10 +264,6 @@
self._unpackError(key)
elif what == rpm.RPMCALLBACK_SCRIPT_ERROR:
self._scriptError(amount, total, key)
- elif what == rpm.RPMCALLBACK_SCRIPT_START:
- self._script_start(key)
- elif what == rpm.RPMCALLBACK_SCRIPT_STOP:
- self._scriptStop()
except Exception:
exc_type, exc_value, exc_traceback = sys.exc_info()
except_list = traceback.format_exception(exc_type, exc_value, exc_traceback)
Only in dnf-4.0.4/dnf/yum: rpmtrans.py.orig
Only in dnf-4.0.4/dnf/yum: rpmtrans.py.rej