diff options
author | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-11-07 16:34:06 +0000 |
---|---|---|
committer | Gwenolé Beauchesne <gbeauchesne@mandriva.org> | 2003-11-07 16:34:06 +0000 |
commit | 5ec0bdc7f65c446a125e05db6f7c76d8c2aa8eaf (patch) | |
tree | 741ebda60039a21cf6f6575c1867b63ea060b918 /perl-install | |
parent | cab4e475d8bf27c48e9b4914b197ee20345313e8 (diff) | |
download | drakx-5ec0bdc7f65c446a125e05db6f7c76d8c2aa8eaf.tar drakx-5ec0bdc7f65c446a125e05db6f7c76d8c2aa8eaf.tar.gz drakx-5ec0bdc7f65c446a125e05db6f7c76d8c2aa8eaf.tar.bz2 drakx-5ec0bdc7f65c446a125e05db6f7c76d8c2aa8eaf.tar.xz drakx-5ec0bdc7f65c446a125e05db6f7c76d8c2aa8eaf.zip |
reintegrate togglePackageSelection that fpons nuked away during (mis)merge
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/pkgs.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index 2f7f62ce9..077c1f5a4 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -293,6 +293,10 @@ sub unselectPackage($$;$) { } 1; } +sub togglePackageSelection($$;$) { + my ($packages, $pkg, $o_otherOnly) = @_; + $pkg->flag_selected ? unselectPackage($packages, $pkg, $o_otherOnly) : selectPackage($packages, $pkg, 0, $o_otherOnly); +} sub setPackageSelection($$$) { my ($packages, $pkg, $value) = @_; $value ? selectPackage($packages, $pkg) : unselectPackage($packages, $pkg); |