From 9640fbca731c010399162028f882d47b5ebc525c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 7 Aug 2007 12:51:37 +0000 Subject: handle $app_context->{arch} as used by ->get_replaced_packages --- lib/Youri/Repository/Mandriva_upload.pm | 4 ++-- 1 file 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(), ) ); -- cgit v1.2.1