aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-06 21:11:15 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-06 21:11:15 +0000
commit3c2eebcc5034025de84e0f5580378569eeb01f43 (patch)
tree3bdff6037309dcf884681d2b3823733104dc2a92
parent22ea6983bbc404c4de78acb92ad20a4de2d26799 (diff)
downloadmga-youri-core-3c2eebcc5034025de84e0f5580378569eeb01f43.tar
mga-youri-core-3c2eebcc5034025de84e0f5580378569eeb01f43.tar.gz
mga-youri-core-3c2eebcc5034025de84e0f5580378569eeb01f43.tar.bz2
mga-youri-core-3c2eebcc5034025de84e0f5580378569eeb01f43.tar.xz
mga-youri-core-3c2eebcc5034025de84e0f5580378569eeb01f43.zip
restore "noarch packages are potentially linked from other directories" code
(hopefully fixing removing of old noarch packages in other arches)
-rw-r--r--lib/Youri/Repository.pm22
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/Youri/Repository.pm b/lib/Youri/Repository.pm
index 8aa9cb0..cbfbbcb 100644
--- a/lib/Youri/Repository.pm
+++ b/lib/Youri/Repository.pm
@@ -267,17 +267,17 @@ sub get_replaced_packages {
$app_context
));
-# # noarch packages are potentially linked from other directories
-# if ($package->get_arch() eq 'noarch') {
-# foreach my $arch ($self->get_extra_arches()) {
-# push(@list, $self->get_older_revisions(
-# $package,
-# $target,
-# $user_context,
-# { arch => $arch }
-# ));
-# }
-# }
+ # noarch packages are potentially linked from other directories
+ if ($package->get_arch() eq 'noarch') {
+ foreach my $arch ($self->get_extra_arches()) {
+ push(@list, $self->get_older_revisions(
+ $package,
+ $target,
+ $user_context,
+ { arch => $arch }
+ ));
+ }
+ }
# collect all obsoleted packages
push(@list, $self->get_obsoleted_packages(