summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-04-05 11:17:41 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-04-05 11:17:41 +0000
commit4021e502ce287bab1116e8d60dc2b1a3edf49cae (patch)
treea04bc5fbb7015276c47ff2286ee99221b741f62e /perl-install/install_any.pm
parentbde5bfd56dd990e7a3cf042a7f68ab4bbd5ab557 (diff)
downloaddrakx-4021e502ce287bab1116e8d60dc2b1a3edf49cae.tar
drakx-4021e502ce287bab1116e8d60dc2b1a3edf49cae.tar.gz
drakx-4021e502ce287bab1116e8d60dc2b1a3edf49cae.tar.bz2
drakx-4021e502ce287bab1116e8d60dc2b1a3edf49cae.tar.xz
drakx-4021e502ce287bab1116e8d60dc2b1a3edf49cae.zip
(setDefaultPackages) despite find and any are semantically equivalent
in this context, any will be used there (boolean vs scalar context)
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index e93664e0c..9fb467cfa 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -329,7 +329,7 @@ sub setDefaultPackages {
push @{$o->{default_packages}}, "numlock" if $o->{miscellaneous}{numlock};
push @{$o->{default_packages}}, "raidtools" if !is_empty_array_ref($o->{all_hds}{raids});
push @{$o->{default_packages}}, "lvm2" if !is_empty_array_ref($o->{all_hds}{lvms});
- push @{$o->{default_packages}}, "alsa", "alsa-utils" if find { modules::get_alias("sound-slot-$_") =~ /^snd-/ } 0 .. 4;
+ push @{$o->{default_packages}}, "alsa", "alsa-utils" if any { modules::get_alias("sound-slot-$_") =~ /^snd-/ } 0 .. 4;
push @{$o->{default_packages}}, "grub" if isLoopback(fsedit::get_root($o->{fstab}));
push @{$o->{default_packages}}, uniq(grep { $_ } map { fsedit::package_needed_for_partition_type($_) } @{$o->{fstab}});