summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-09-02 09:52:51 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-09-02 09:52:51 +0000
commit39825fad12d081797d4b06ae27e59709cba61afd (patch)
treee47432c114de5b66e4257efeba8cf9e13160d019 /perl-install/pkgs.pm
parent67d56cfa0933862ef8c9330a3a0da873c9188a79 (diff)
downloaddrakx-39825fad12d081797d4b06ae27e59709cba61afd.tar
drakx-39825fad12d081797d4b06ae27e59709cba61afd.tar.gz
drakx-39825fad12d081797d4b06ae27e59709cba61afd.tar.bz2
drakx-39825fad12d081797d4b06ae27e59709cba61afd.tar.xz
drakx-39825fad12d081797d4b06ae27e59709cba61afd.zip
new function select_by_package_names()
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 873e965fe..92b07e284 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -279,6 +279,15 @@ sub packageCallbackChoices {
}
}
+sub select_by_package_names {
+ my ($packages, $names, $b_base, $o_otherOnly) = @_;
+
+ foreach (@$names) {
+ my $p = packageByName($packages, $_) or next;
+ selectPackage($packages, $p, $b_base, $o_otherOnly);
+ }
+}
+
#- selection, unselection of package.
sub selectPackage {
my ($packages, $pkg, $b_base, $o_otherOnly) = @_;