aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Youri/Submit/Action/Archive.pm3
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 (