diff options
author | Anssi Hannula <anssi@mandriva.org> | 2009-07-07 13:35:45 +0000 |
---|---|---|
committer | Anssi Hannula <anssi@mandriva.org> | 2009-07-07 13:35:45 +0000 |
commit | b45de639ca142eb46ecce6dc8c82a87e6908c79c (patch) | |
tree | da99e7e69f38ca3ed20ff68861a663b2d75e0aad /t/02create_pkgs.t | |
parent | 2edd019a9c08fd91322f13eced6dafa15a18e263 (diff) | |
download | urpmi-b45de639ca142eb46ecce6dc8c82a87e6908c79c.tar urpmi-b45de639ca142eb46ecce6dc8c82a87e6908c79c.tar.gz urpmi-b45de639ca142eb46ecce6dc8c82a87e6908c79c.tar.bz2 urpmi-b45de639ca142eb46ecce6dc8c82a87e6908c79c.tar.xz urpmi-b45de639ca142eb46ecce6dc8c82a87e6908c79c.zip |
add testcase for bug #52105
Diffstat (limited to 't/02create_pkgs.t')
-rw-r--r-- | t/02create_pkgs.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t index 81f282d6..507af0c4 100644 --- a/t/02create_pkgs.t +++ b/t/02create_pkgs.t @@ -62,7 +62,8 @@ sub rpmbuild { my ($spec, $o_medium_name) = @_; my $dir = getcwd(); - system_("rpmbuild --quiet --define 'rpm_version %(rpm -q --queryformat \"%{VERSION}\" rpm|sed -e \"s/\\\\.//g\")' --define '_topdir $dir/tmp' --define '_tmppath $dir/tmp' -bb --clean --nodeps $spec"); + my ($target) = $spec =~ m!-(i586|x86_64)\.spec$!; + system_("rpmbuild --quiet --define 'rpm_version %(rpm -q --queryformat \"%{VERSION}\" rpm|sed -e \"s/\\\\.//g\")' --define '_topdir $dir/tmp' --define '_tmppath $dir/tmp' -bb --clean --nodeps ".($target ? "--target $target" : "")." $spec"); my ($name) = $spec =~ m!([^/]*)\.spec$!; |