summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-19 14:22:41 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-19 15:37:25 +0200
commit60b5009cc4679d4b55fb0490d4d273b5cc6f220c (patch)
treea8b3e52b8142d603c135d1e459077b37b7af5f55 /t
parentd544abfb415854477c99e511a354a8ccf60644b6 (diff)
downloadurpmi-60b5009cc4679d4b55fb0490d4d273b5cc6f220c.tar
urpmi-60b5009cc4679d4b55fb0490d4d273b5cc6f220c.tar.gz
urpmi-60b5009cc4679d4b55fb0490d4d273b5cc6f220c.tar.bz2
urpmi-60b5009cc4679d4b55fb0490d4d273b5cc6f220c.tar.xz
urpmi-60b5009cc4679d4b55fb0490d4d273b5cc6f220c.zip
make testsuite work with rpm < 4.14.2 again
Diffstat (limited to 't')
-rw-r--r--t/superuser--media_info_dir.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t
index ddb190c5..e9f58f79 100644
--- a/t/superuser--media_info_dir.t
+++ b/t/superuser--media_info_dir.t
@@ -52,7 +52,8 @@ sub urpmi_force_skip_unknown {
sub rpm_v3 {
my @names = qw(libtermcap nls p2c);
- system_("rpm --noverify --root $::pwd/root -i --ignorearch --noscripts media/rpm-v3/*.i386.rpm");
+ my $noverify_opt = urpm::select::_rpm_version() ge 4.14.2 ? '--noverify' : '';
+ system_("rpm $noverify_opt --root $::pwd/root -i --ignorearch --noscripts media/rpm-v3/*.i386.rpm");
check_installed_names(@names);
foreach ('/lib/libtermcap.so.2.0.8', '/usr/lib/libp2c.so.1.2.0', '/usr/X11R6/lib/X11/nls/C') {