aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Repository
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-07 12:51:37 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-07 12:51:37 +0000
commit9640fbca731c010399162028f882d47b5ebc525c (patch)
treed016bbe9e152be62f509f5fc3ef5c3cd87484f47 /lib/Youri/Repository
parent3c2eebcc5034025de84e0f5580378569eeb01f43 (diff)
downloadmga-youri-core-9640fbca731c010399162028f882d47b5ebc525c.tar
mga-youri-core-9640fbca731c010399162028f882d47b5ebc525c.tar.gz
mga-youri-core-9640fbca731c010399162028f882d47b5ebc525c.tar.bz2
mga-youri-core-9640fbca731c010399162028f882d47b5ebc525c.tar.xz
mga-youri-core-9640fbca731c010399162028f882d47b5ebc525c.zip
handle $app_context->{arch} as used by ->get_replaced_packages
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(),
)
);