summaryrefslogtreecommitdiffstats
path: root/perl-install/install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-08 21:03:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-08 21:03:06 +0000
commitdac52f9e80739c22ba76fbc854d980e2230907f1 (patch)
treea5caa34531f00ff0dcec6081f73cde0c4af3725b /perl-install/install
parent2a618e97d42b6b48b7661b1554a8b1dbee6a6a71 (diff)
downloaddrakx-dac52f9e80739c22ba76fbc854d980e2230907f1.tar
drakx-dac52f9e80739c22ba76fbc854d980e2230907f1.tar.gz
drakx-dac52f9e80739c22ba76fbc854d980e2230907f1.tar.bz2
drakx-dac52f9e80739c22ba76fbc854d980e2230907f1.tar.xz
drakx-dac52f9e80739c22ba76fbc854d980e2230907f1.zip
simplify code using Xconfig::proprietary::pkgs_for_Driver2 from drakx-kbd-mouse-X11 0.21
Diffstat (limited to 'perl-install/install')
-rw-r--r--perl-install/install/steps.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install/steps.pm b/perl-install/install/steps.pm
index f094658e8..e10c010ea 100644
--- a/perl-install/install/steps.pm
+++ b/perl-install/install/steps.pm
@@ -580,8 +580,8 @@ sub install_hardware_packages {
require Xconfig::card;
require Xconfig::proprietary;
my $cards = Xconfig::card::readCardsDB("$ENV{SHARE_PATH}/ldetect-lst/Cards+");
- my @drivers = uniq(map { exists $_->{Driver2} ? Xconfig::proprietary::pkg_name_for_Driver2($_) : () } values %$cards);
- push @l, map { $_, @{$o->do_pkgs->check_kernel_module_packages($_) || []} } @drivers;
+ my @drivers = grep { $_ } uniq(map { $_->{Driver2} } values %$cards);
+ push @l, map { Xconfig::proprietary::pkgs_for_Driver2($_, $o->do_pkgs) } @drivers;
require network::connection;
require network::thirdparty;