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.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)");
}