diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-11-28 18:28:09 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-11-28 18:28:09 +0000 |
commit | 79b6f0a90ffe118d914cb294a8fc82206a40dde2 (patch) | |
tree | c8cb0679e4d5d955aef46f54544cca0dbe8d36bd /perl-install | |
parent | 23c5302dd80eac2c4456e007b4c142ef573e33cd (diff) | |
download | drakx-79b6f0a90ffe118d914cb294a8fc82206a40dde2.tar drakx-79b6f0a90ffe118d914cb294a8fc82206a40dde2.tar.gz drakx-79b6f0a90ffe118d914cb294a8fc82206a40dde2.tar.bz2 drakx-79b6f0a90ffe118d914cb294a8fc82206a40dde2.tar.xz drakx-79b6f0a90ffe118d914cb294a8fc82206a40dde2.zip |
(switch) be more robust
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/harddrake/sound.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index 44b437ffc..fa140b193 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -216,7 +216,7 @@ sub switch { my $driver = $device->{current_driver} || $device->{driver}; foreach (@blacklist) { $blacklisted = 1 if $driver eq $_ } - my @alternative = @{get_alternative($driver)}; + my @alternative = $driver ne 'unknown' ? @{get_alternative($driver)} : (); unless ($driver eq $device->{driver} || member($device->{driver}, @alternative)) { push @alternative, @{get_alternative($device->{driver})}, $device->{driver}; } |