diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-08-05 12:57:18 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-08-05 12:57:18 +0000 |
commit | 383e043b133bbfe6caae3b0bcab440af49d80180 (patch) | |
tree | cd1a43a9182245cbc56de26e8d4be4078fcbcc15 | |
parent | 511d8c7e5f5298458e6edb8a23511400cc845c93 (diff) | |
download | rpmdrake-383e043b133bbfe6caae3b0bcab440af49d80180.tar rpmdrake-383e043b133bbfe6caae3b0bcab440af49d80180.tar.gz rpmdrake-383e043b133bbfe6caae3b0bcab440af49d80180.tar.bz2 rpmdrake-383e043b133bbfe6caae3b0bcab440af49d80180.tar.xz rpmdrake-383e043b133bbfe6caae3b0bcab440af49d80180.zip |
(perform_installation) try to pass a meaningfull @ask_unselect to urpm::main_loop::run()
(backported from TRUNK)
-rw-r--r-- | Rpmdrake/pkg.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 1621e74e..aabdd1b6 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -721,8 +721,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 |