aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-13 22:53:16 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-13 22:53:16 +0000
commit6449b90bcfadffd842cf0c27a877f5f94d6c49ec (patch)
treee34db7d750a737818be992f37dbf114419826246 /Rpmdrake
parent4cc4765294d094cd0f0707fbc47d4b61d96e432b (diff)
downloadrpmdrake-6449b90bcfadffd842cf0c27a877f5f94d6c49ec.tar
rpmdrake-6449b90bcfadffd842cf0c27a877f5f94d6c49ec.tar.gz
rpmdrake-6449b90bcfadffd842cf0c27a877f5f94d6c49ec.tar.bz2
rpmdrake-6449b90bcfadffd842cf0c27a877f5f94d6c49ec.tar.xz
rpmdrake-6449b90bcfadffd842cf0c27a877f5f94d6c49ec.zip
(perform_installation) try to pass a meaningfull @ask_unselect to urpm::main_loop::run()
Diffstat (limited to 'Rpmdrake')
-rw-r--r--Rpmdrake/pkg.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index b076d8b2..8982046e 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -722,8 +722,11 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
}
};
+ # FIXME: sometimes state is lost:
+ my @ask_unselect = urpm::select::unselected_packages($urpm, $state);
+
my $exit_code =
- urpm::main_loop::run($urpm, $state, 1, [ ], $requested,
+ urpm::main_loop::run($urpm, $state, 1, \@ask_unselect, $requested,
{
completed => sub {
# explicitly destroy the progress window when it's over; we may