summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-06-11 16:21:17 +0000
committerFrancois Pons <fpons@mandriva.com>2003-06-11 16:21:17 +0000
commit11b4e9065e9f0d2d8e91eaa38b1d548effca4fd4 (patch)
treea376371ebd9963a7646526a104d5794c9e269260 /perl-install
parentd036040823c01ce0d140271618f1fbbb9f2f8f51 (diff)
downloaddrakx-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')
-rw-r--r--perl-install/pkgs.pm6
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($$;$) {