diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | Rpmdrake/pkg.pm | 7 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,6 @@ +- rpmdrake + o fix registering orphan package (#51229) + Version 5.19 - 1 October 2009, Thierry Vignaud - gurpmi.addmedia diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index b97af7d7..0a64611c 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -704,6 +704,8 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( } } + urpm::orphans::mark_as_requested($urpm, $state); + my ($progress, $total, @rpms_upgrade); my $transaction; my ($progress_nb, $transaction_progress_nb, $remaining, $done); @@ -726,6 +728,11 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( # FIXME: sometimes state is lost: my @ask_unselect = urpm::select::unselected_packages($urpm, $state); + # fix flags for orphan computing: + foreach (keys %{$state->{selected}}) { + my $pkg = $urpm->{depslist}[$_]; + $pkg->set_flag_requested(0); + } my $exit_code = urpm::main_loop::run($urpm, $state, 1, \@ask_unselect, $requested, { |