From e94977f25b68c58cc4d8c89ec45a6eb5c7e84a8e Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Thu, 1 Dec 2011 00:39:49 +0000 Subject: Package to archive can have any arch --- lib/Youri/Submit/Action/Archive.pm | 3 +-- 1 file changed, 1 insertion(+), 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 ( -- cgit v1.2.1