perl-RPM2/perl-RPM2-1.0-switchofffunctions.patch

45 lines
1.1 KiB
Diff
Raw Normal View History

diff -Nur -x '*.orig' -x '*.rej' RPM2-1.0/lib/RPM2.xs mezzanine_patched_RPM2-1.0/lib/RPM2.xs
--- RPM2-1.0/lib/RPM2.xs 2011-04-01 16:16:49.000000000 +0200
+++ mezzanine_patched_RPM2-1.0/lib/RPM2.xs 2016-03-17 23:07:51.715174431 +0100
@@ -71,9 +71,6 @@
break;
case RPMCALLBACK_INST_START:
- rpmcliHashesCurrent = 0;
- if (h == NULL || !(flags & INSTALL_LABEL))
- break;
break;
case RPMCALLBACK_TRANS_PROGRESS:
@@ -81,30 +78,18 @@
break;
case RPMCALLBACK_TRANS_START:
- rpmcliHashesCurrent = 0;
- rpmcliProgressTotal = 1;
- rpmcliProgressCurrent = 0;
break;
case RPMCALLBACK_TRANS_STOP:
- rpmcliProgressTotal = rpmcliPackagesTotal;
- rpmcliProgressCurrent = 0;
break;
case RPMCALLBACK_REPACKAGE_START:
- rpmcliHashesCurrent = 0;
- rpmcliProgressTotal = total;
- rpmcliProgressCurrent = 0;
break;
case RPMCALLBACK_REPACKAGE_PROGRESS:
break;
case RPMCALLBACK_REPACKAGE_STOP:
- rpmcliProgressTotal = total;
- rpmcliProgressCurrent = total;
- rpmcliProgressTotal = rpmcliPackagesTotal;
- rpmcliProgressCurrent = 0;
break;
case RPMCALLBACK_UNINST_PROGRESS: