aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Repository
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Youri/Repository')
-rw-r--r--lib/Youri/Repository/Mandriva_upload.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm
index beb7f82..9751121 100644
--- a/lib/Youri/Repository/Mandriva_upload.pm
+++ b/lib/Youri/Repository/Mandriva_upload.pm
@@ -465,7 +465,7 @@ sub get_revisions {
croak "Not a class method" unless ref $self;
print "Looking for package $package revisions for $target\n" if $self->{_verbose} > 0;
- my $arch = $user_context->{arch} || $package->get_arch();
+ my $arch = $app_context->{arch} || $user_context->{arch} || $package->get_arch();
my $media_arch = $arch eq 'noarch' ? $self->{_noarch} : $arch;
my $path = $arch eq 'src' ? "$target/SRPMS/" : "$target/$media_arch/media";
my $media = $self->_get_section($package, $target, $user_context, $app_context);
@@ -478,7 +478,7 @@ sub get_revisions {
$name,
undef,
undef,
- $arch,
+ $package->get_arch(),
)
);