diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-24 11:50:22 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-24 11:50:22 +0000 |
commit | 5f36b64f22bfac15e2a89387115a650d5663f35b (patch) | |
tree | e544fa70eea854b4485c8ceaffd4c303ff4fe670 | |
parent | f38a83a7295b598bc683a6930830c7324216406f (diff) | |
download | rpmdrake-5f36b64f22bfac15e2a89387115a650d5663f35b.tar rpmdrake-5f36b64f22bfac15e2a89387115a650d5663f35b.tar.gz rpmdrake-5f36b64f22bfac15e2a89387115a650d5663f35b.tar.bz2 rpmdrake-5f36b64f22bfac15e2a89387115a650d5663f35b.tar.xz rpmdrake-5f36b64f22bfac15e2a89387115a650d5663f35b.zip |
(closure_removal) don't reinvent the wheel, just use
urpm::select::find_packages_to_remove (which will just enables us to add a new
feature in next commit)
-rwxr-xr-x | rpmdrake | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -829,15 +829,8 @@ sub run_treeview_dialog { }; my $closure_removal = sub { - my @to_remove; $urpm->{state} = {}; - foreach (@_) { - $urpm->resolve_rejected($db, $urpm->{state}, $pkgs->{$_}{pkg}, removed => 1); - foreach (keys %{$urpm->{state}{rejected}}) { - $urpm->{state}{rejected}{$_}{removed} && !$urpm->{state}{rejected}{$_}{obsoleted} and push @to_remove, remove_arch($_); - } - } - @to_remove; + urpm::select::find_packages_to_remove($urpm, $urpm->{state}, \@_); }; my $force_rebuild; $options = { |