From cfb8d02ce4054aecfe7549eff6414d56e942285c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 27 Sep 2007 12:35:46 +0000 Subject: use existing function (thanks titi) --- urpm/select.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urpm') diff --git a/urpm/select.pm b/urpm/select.pm index 8f6c8f3f..73b4b62f 100644 --- a/urpm/select.pm +++ b/urpm/select.pm @@ -432,7 +432,7 @@ sub find_packages_to_remove { find_removed_from_basesystem($urpm, $db, $state, $options{callback_base}) or return (); } - grep { $state->{rejected}{$_}{removed} && !$state->{rejected}{$_}{obsoleted} } keys %{$state->{rejected}}; + removed_packages($urpm, $state); } sub find_removed_from_basesystem { @@ -445,7 +445,7 @@ sub find_removed_from_basesystem { my ($p) = @_; $basepackages{$p->fullname} = 0; }); - foreach (grep { $state->{rejected}{$_}{removed} && !$state->{rejected}{$_}{obsoleted} } keys %{$state->{rejected}}) { + foreach (removed_packages($urpm, $state)) { exists $basepackages{$_} or next; ++$basepackages{$_}; } -- cgit v1.2.1