summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/harddrake2
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-12 12:17:53 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-12 12:17:53 +0000
commitbcec1ffee9cba962ebf17be8094045a58bca4680 (patch)
tree30a5fb2b0282ecf40a59bc1c5cbe08f499f086dc /perl-install/standalone/harddrake2
parente2eaf07bada9cae3c70dc70974a52fe1e102e825 (diff)
downloaddrakx-bcec1ffee9cba962ebf17be8094045a58bca4680.tar
drakx-bcec1ffee9cba962ebf17be8094045a58bca4680.tar.gz
drakx-bcec1ffee9cba962ebf17be8094045a58bca4680.tar.bz2
drakx-bcec1ffee9cba962ebf17be8094045a58bca4680.tar.xz
drakx-bcec1ffee9cba962ebf17be8094045a58bca4680.zip
simplify now that alternatives are an array and not an array ref
Diffstat (limited to 'perl-install/standalone/harddrake2')
-rwxr-xr-xperl-install/standalone/harddrake24
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2
index 23a3049d4..797403e5e 100755
--- a/perl-install/standalone/harddrake2
+++ b/perl-install/standalone/harddrake2
@@ -425,8 +425,8 @@ foreach (@classes) {
$configurator .= harddrake::data::set_removable_configurator($Ident, $_);
if ($Ident eq "AUDIO") {
require harddrake::sound;
- my $alter = harddrake::sound::get_alternative($_->{driver});
- if (my $alternative_drivers = $alter->[0] ne 'unknown' && join(', ', @$alter)) {
+ my @alter = harddrake::sound::get_alternative($_->{driver});
+ if (my $alternative_drivers = join(', ', @alter)) {
$_->{alternative_drivers} = $alternative_drivers;
}
}