aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-10-02 10:51:22 +0000
committerThierry Vignaud <tv@mandriva.org>2009-10-02 10:51:22 +0000
commit2951ec36abe44242fc1c74dd68e1207f75f9fdae (patch)
tree0edb82ef264ee639ac4de043a03762d93cc8e2d8 /Rpmdrake/pkg.pm
parent5df3a6c04ceaf8f179ce656b263ad0afb09336dd (diff)
downloadrpmdrake-2951ec36abe44242fc1c74dd68e1207f75f9fdae.tar
rpmdrake-2951ec36abe44242fc1c74dd68e1207f75f9fdae.tar.gz
rpmdrake-2951ec36abe44242fc1c74dd68e1207f75f9fdae.tar.bz2
rpmdrake-2951ec36abe44242fc1c74dd68e1207f75f9fdae.tar.xz
rpmdrake-2951ec36abe44242fc1c74dd68e1207f75f9fdae.zip
(perform_installation) fix flags for orphan computing, thus fixing
registering orphan packages (#51229)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm7
1 files changed, 7 insertions, 0 deletions
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,
{