From 3c2eebcc5034025de84e0f5580378569eeb01f43 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 6 Aug 2007 21:11:15 +0000 Subject: restore "noarch packages are potentially linked from other directories" code (hopefully fixing removing of old noarch packages in other arches) --- lib/Youri/Repository.pm | 22 +++++++++++----------- 1 file 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( -- cgit v1.2.1