diff options
author | Francois Pons <fpons@mandriva.com> | 2003-06-11 16:21:17 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2003-06-11 16:21:17 +0000 |
commit | 11b4e9065e9f0d2d8e91eaa38b1d548effca4fd4 (patch) | |
tree | a376371ebd9963a7646526a104d5794c9e269260 /perl-install/pkgs.pm | |
parent | d036040823c01ce0d140271618f1fbbb9f2f8f51 (diff) | |
download | drakx-11b4e9065e9f0d2d8e91eaa38b1d548effca4fd4.tar drakx-11b4e9065e9f0d2d8e91eaa38b1d548effca4fd4.tar.gz drakx-11b4e9065e9f0d2d8e91eaa38b1d548effca4fd4.tar.bz2 drakx-11b4e9065e9f0d2d8e91eaa38b1d548effca4fd4.tar.xz drakx-11b4e9065e9f0d2d8e91eaa38b1d548effca4fd4.zip |
fixed otherOnly not taken into account for unselectPackage.
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r-- | perl-install/pkgs.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index 9ccf690de..c7ce0e1bb 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -277,6 +277,12 @@ sub unselectPackage($$;$) { my $state = $packages->{state} ||= {}; my @l = $packages->disable_selected($packages->{rpmdb}, $state, $pkg); + if ($o_otherOnly) { + foreach (@l) { + $o_otherOnly->{$_->id} = undef; + } + $packages->resolve_requested($packages->{rpmdb}, $state, $o_otherOnly, callback_choices => \&packageCallbackChoices); + } 1; } sub togglePackageSelection($$;$) { |