summaryrefslogtreecommitdiffstats
path: root/urpm/install.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-01-17 03:54:32 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-09 17:50:35 +0200
commitb870c2c387e563b5b8354420ffd9aa0b386dcf07 (patch)
treeaf3de79a5645b214d32e4e28c461053da1c779d8 /urpm/install.pm
parent2b9a098752bdf9b5a8a33b852c26f4b78bd077c5 (diff)
downloadurpmi-b870c2c387e563b5b8354420ffd9aa0b386dcf07.tar
urpmi-b870c2c387e563b5b8354420ffd9aa0b386dcf07.tar.gz
urpmi-b870c2c387e563b5b8354420ffd9aa0b386dcf07.tar.bz2
urpmi-b870c2c387e563b5b8354420ffd9aa0b386dcf07.tar.xz
urpmi-b870c2c387e563b5b8354420ffd9aa0b386dcf07.zip
cpan_testers: fix a test with rpm < 4.13.0
It was failing for older versions of rpm since commit 32c4bc874e3f7fc99188bf045902b1018f38855a This fix the counting & adjust to missing pkg name when erasing with older rpms
Diffstat (limited to 'urpm/install.pm')
-rw-r--r--urpm/install.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index e0d22441..0e4cd81b 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -120,6 +120,8 @@ sub install_logger {
++$urpm->{logger_count} if $pname;
$cnt = $pname ? $urpm->{logger_count} : '-';
}
+ require urpm::select;
+ $index++ if urpm::select::_rpm_version() lt 4.13.0;
my $s = sprintf("%9s: %-22s", $cnt . "/" . $total_pkg, $pname);
print $s;
$s =~ / $/ or printf "\n%9s %-22s", '', '';