summaryrefslogtreecommitdiffstats
path: root/t/superuser--media_info_dir.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-14 11:28:41 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-14 11:28:41 +0000
commitedabe9d4501ff5c70b18f85e15c4cd6fc0689cac (patch)
treea8009e7c437bacdd0c63676832ec829235058bbb /t/superuser--media_info_dir.t
parent4649f78ef3be666c889607c8b96f0fbe22ee4f12 (diff)
downloadurpmi-edabe9d4501ff5c70b18f85e15c4cd6fc0689cac.tar
urpmi-edabe9d4501ff5c70b18f85e15c4cd6fc0689cac.tar.gz
urpmi-edabe9d4501ff5c70b18f85e15c4cd6fc0689cac.tar.bz2
urpmi-edabe9d4501ff5c70b18f85e15c4cd6fc0689cac.tar.xz
urpmi-edabe9d4501ff5c70b18f85e15c4cd6fc0689cac.zip
allow to run tests on 4.4.2.2 which gives a few different results
Diffstat (limited to 't/superuser--media_info_dir.t')
-rw-r--r--t/superuser--media_info_dir.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t
index 7d2a18d2..2173014c 100644
--- a/t/superuser--media_info_dir.t
+++ b/t/superuser--media_info_dir.t
@@ -46,7 +46,10 @@ sub rpm_v3 {
chomp(my $fullname = `$cmd`);
my ($arch) = $fullname =~ /(\w+)$/;
- $wanted_arch = 'i386' if $src_rpm =~ /KBackup/; # WARNING: package has a Sourcerpm empty tag (#29809), but this package is broken anyway
+ if (rpm_is_jbj_version()) {
+ # WARNING: package has a Sourcerpm empty tag (#29809), but this package is broken anyway
+ $wanted_arch = 'i386' if $src_rpm =~ /KBackup/;
+ }
is($arch, $wanted_arch, "$fullname should have arch $wanted_arch (found $arch)");
}