summaryrefslogtreecommitdiffstats
path: root/t/superuser--media_info_dir.t
diff options
context:
space:
mode:
Diffstat (limited to 't/superuser--media_info_dir.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') {