diff options
author | Pascal Terjan <pterjan@mageia.org> | 2011-12-01 00:39:49 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2011-12-01 00:39:49 +0000 |
commit | e94977f25b68c58cc4d8c89ec45a6eb5c7e84a8e (patch) | |
tree | 37464aa43dc8934c3b6f079ff9d0441fefc0f6f1 | |
parent | d115020f6badfb7e39d08d8d9c71754a59db0d86 (diff) | |
download | mga-youri-submit-e94977f25b68c58cc4d8c89ec45a6eb5c7e84a8e.tar mga-youri-submit-e94977f25b68c58cc4d8c89ec45a6eb5c7e84a8e.tar.gz mga-youri-submit-e94977f25b68c58cc4d8c89ec45a6eb5c7e84a8e.tar.bz2 mga-youri-submit-e94977f25b68c58cc4d8c89ec45a6eb5c7e84a8e.tar.xz mga-youri-submit-e94977f25b68c58cc4d8c89ec45a6eb5c7e84a8e.zip |
Package to archive can have any arch
-rw-r--r-- | lib/Youri/Submit/Action/Archive.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Youri/Submit/Action/Archive.pm b/lib/Youri/Submit/Action/Archive.pm index 41a8b8f..1a221b1 100644 --- a/lib/Youri/Submit/Action/Archive.pm +++ b/lib/Youri/Submit/Action/Archive.pm @@ -37,8 +37,7 @@ sub run { my $main_section = $repository->_get_main_section($package, $target, $define); print "section $section main_section $main_section\n" if $self->{_verbose}; my $arch = $package->get_arch(); - $arch = $self->{_noarch} if $arch eq 'noarch'; - my $path = $arch eq 'src' ? "$target/SRPMS" : "$target/$arch/media"; + my $path = $arch eq 'src' ? "$target/SRPMS" : "$target/[^/]+/media"; $path = "$repository->{_install_root}/$path"; $path =~ s,/+,/,g; foreach my $replaced_package ( |