aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Youri/Repository/Mandriva_upload.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm
index 421d5f7..beb7f82 100644
--- a/lib/Youri/Repository/Mandriva_upload.pm
+++ b/lib/Youri/Repository/Mandriva_upload.pm
@@ -194,7 +194,7 @@ sub _get_path {
my ($self, $package, $target, $user_context, $app_context) = @_;
my $section = $self->_get_section($package, $target, $user_context, $app_context);
- my $arch = $package->get_arch();
+ my $arch = $app_context->{arch} || $package->get_arch();
$arch = $translate_arch{$arch} || $arch;
if ($arch eq 'noarch') {
$arch = $self->{_noarch}