diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-07-07 20:46:40 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-07-07 20:46:40 +0000 |
commit | c617573f7ca65da803615991419db926420f22b1 (patch) | |
tree | bb3d7d440cbeec7fee53d0751c5232f31a4c8548 /urpm/main_loop.pm | |
parent | c54d9828bb2eb4a38197b8d656aefd52c9c9ea36 (diff) | |
download | urpmi-c617573f7ca65da803615991419db926420f22b1.tar urpmi-c617573f7ca65da803615991419db926420f22b1.tar.gz urpmi-c617573f7ca65da803615991419db926420f22b1.tar.bz2 urpmi-c617573f7ca65da803615991419db926420f22b1.tar.xz urpmi-c617573f7ca65da803615991419db926420f22b1.zip |
o handle "unrequested orphans" (similar to "deborphan")
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r-- | urpm/main_loop.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index 3dec70c8..224a9909 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -26,6 +26,7 @@ use urpm::msg; use urpm::install; use urpm::media; use urpm::select; +use urpm::orphans; use urpm::get_pkgs; use urpm::signature; use urpm::util qw(untaint difference2 intersection member partition); @@ -209,6 +210,9 @@ foreach my $set (@{$state->{transaction} || []}) { callback_trans => $callbacks->{trans}, callback_report_uninst => $callbacks->{callback_report_uninst}, ); + + urpm::orphans::add_unrequested($urpm, $state); + my @l = urpm::install::install($urpm, $to_remove, \%transaction_sources_install, \%transaction_sources, |