diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-21 15:33:05 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-21 15:33:05 +0000 |
commit | aa496190ba5dc1b0fdb79a6b8c53b382c0710d9f (patch) | |
tree | 7b582b7adfd3cd0756a21facf3815183582e6fd8 | |
parent | 38b75299034c372a8013c18f39ce0ee6b270a537 (diff) | |
download | urpmi-aa496190ba5dc1b0fdb79a6b8c53b382c0710d9f.tar urpmi-aa496190ba5dc1b0fdb79a6b8c53b382c0710d9f.tar.gz urpmi-aa496190ba5dc1b0fdb79a6b8c53b382c0710d9f.tar.bz2 urpmi-aa496190ba5dc1b0fdb79a6b8c53b382c0710d9f.tar.xz urpmi-aa496190ba5dc1b0fdb79a6b8c53b382c0710d9f.zip |
add an old .src.rpm in the test. it fails
-rw-r--r-- | t/data/rpm-v3/KBackup-1.2.11-1.src.rpm | bin | 0 -> 110893 bytes | |||
-rw-r--r-- | t/superuser--media_info_dir.t | 12 |
2 files changed, 12 insertions, 0 deletions
diff --git a/t/data/rpm-v3/KBackup-1.2.11-1.src.rpm b/t/data/rpm-v3/KBackup-1.2.11-1.src.rpm Binary files differnew file mode 100644 index 00000000..09057446 --- /dev/null +++ b/t/data/rpm-v3/KBackup-1.2.11-1.src.rpm diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t index 2f233ee9..6ce19af9 100644 --- a/t/superuser--media_info_dir.t +++ b/t/superuser--media_info_dir.t @@ -37,4 +37,16 @@ sub rpm_v3 { is(`rpm -qa --root $::pwd/root`, ''); urpmi_removemedia($medium_name); } + + foreach my $src_rpm (glob('media/rpm-v3/*.rpm')) { + my ($wanted_arch) = $src_rpm =~ /(\w+)\.rpm$/; + my $cmd = urpm_cmd('urpmq') . " -f $src_rpm"; + warn "# $cmd\n"; + chomp(my $fullname = `$cmd`); + my ($arch) = $fullname =~ /(\w+)$/; + + $wanted_arch = 'i386' if $src_rpm =~ /KBackup/; # ERROR: package has a Sourcerpm empty tag (#29809) + + is($arch, $wanted_arch, "$fullname should have arch $wanted_arch (found $arch)"); + } } |