diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-06 11:23:15 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-06 11:23:15 +0000 |
commit | 47599fa040a2dd8efd8d1ba80326de221d89e68c (patch) | |
tree | 155dc0ce2a2333ffc65a01a6d2ab9fc3683a6ee6 /Rpmdrake | |
parent | 4cd6e4e2bd4f9055616d6b51de95f12f575fe7b1 (diff) | |
download | rpmdrake-47599fa040a2dd8efd8d1ba80326de221d89e68c.tar rpmdrake-47599fa040a2dd8efd8d1ba80326de221d89e68c.tar.gz rpmdrake-47599fa040a2dd8efd8d1ba80326de221d89e68c.tar.bz2 rpmdrake-47599fa040a2dd8efd8d1ba80326de221d89e68c.tar.xz rpmdrake-47599fa040a2dd8efd8d1ba80326de221d89e68c.zip |
(perform_installation) fix installing packages from rpmdrake (#29068)
Diffstat (limited to 'Rpmdrake')
-rwxr-xr-x | Rpmdrake/pkg.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 7907a56b..d6a3a6e9 100755 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -459,6 +459,12 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( my $lock = urpm::lock::urpmi_db($urpm); my $rpm_lock = urpm::lock::rpm_db($urpm, 'exclusive'); my $state = $urpm->{rpmdrake_state}; + + # select packages to install for !update mode: + if (!$probe_only_for_updates) { + $urpm->resolve_requested($db, $state, { map { $_->id => undef } grep { $_->flag_selected } @{$urpm->{depslist}} }, callback_choices => \&Rpmdrake::gui::callback_choices); + } + my ($local_sources, $list) = urpm::get_pkgs::selected2list($urpm, $state->{selected}, clean_all => 0 |