diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-09-27 12:35:46 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-09-27 12:35:46 +0000 |
commit | cfb8d02ce4054aecfe7549eff6414d56e942285c (patch) | |
tree | 455e117d0092fe20371333f73e68c20fc6a37008 /urpm | |
parent | bca32182ad43ddbcab36eefb467822f14fd77cef (diff) | |
download | urpmi-cfb8d02ce4054aecfe7549eff6414d56e942285c.tar urpmi-cfb8d02ce4054aecfe7549eff6414d56e942285c.tar.gz urpmi-cfb8d02ce4054aecfe7549eff6414d56e942285c.tar.bz2 urpmi-cfb8d02ce4054aecfe7549eff6414d56e942285c.tar.xz urpmi-cfb8d02ce4054aecfe7549eff6414d56e942285c.zip |
use existing function (thanks titi)
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/select.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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{$_}; } |