From 22ea6983bbc404c4de78acb92ad20a4de2d26799 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 6 Aug 2007 16:16:20 +0000 Subject: handle overloading arch via $app_context (used by Action::Link). should really fix #31638 --- lib/Youri/Repository/Mandriva_upload.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- cgit v1.2.1