diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-06 16:16:20 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-06 16:16:20 +0000 |
commit | 22ea6983bbc404c4de78acb92ad20a4de2d26799 (patch) | |
tree | 90592044f75f71589967bdae72b060cec5b21da6 | |
parent | 09bd4c34ab665f1154025198f52f498b5d45e265 (diff) | |
download | mga-youri-core-22ea6983bbc404c4de78acb92ad20a4de2d26799.tar mga-youri-core-22ea6983bbc404c4de78acb92ad20a4de2d26799.tar.gz mga-youri-core-22ea6983bbc404c4de78acb92ad20a4de2d26799.tar.bz2 mga-youri-core-22ea6983bbc404c4de78acb92ad20a4de2d26799.tar.xz mga-youri-core-22ea6983bbc404c4de78acb92ad20a4de2d26799.zip |
handle overloading arch via $app_context (used by Action::Link).
should really fix #31638
-rw-r--r-- | lib/Youri/Repository/Mandriva_upload.pm | 2 |
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} |