diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-02-25 14:02:42 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-02-25 14:02:42 +0000 |
commit | 30e563c4e6b40b2a148b7ee444df21438b065e10 (patch) | |
tree | 6b385440eb807beb4602571d37d1a1ee24e4fc4d /perl-install/standalone/harddrake2 | |
parent | 5c2f5a41677dbf39da2bc49c4d80db957cf4acf5 (diff) | |
download | drakx-30e563c4e6b40b2a148b7ee444df21438b065e10.tar drakx-30e563c4e6b40b2a148b7ee444df21438b065e10.tar.gz drakx-30e563c4e6b40b2a148b7ee444df21438b065e10.tar.bz2 drakx-30e563c4e6b40b2a148b7ee444df21438b065e10.tar.xz drakx-30e563c4e6b40b2a148b7ee444df21438b065e10.zip |
do not display alternatives oss/alsa drivers if there's none
Diffstat (limited to 'perl-install/standalone/harddrake2')
-rwxr-xr-x | perl-install/standalone/harddrake2 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2 index 2727b5fb4..c826509de 100755 --- a/perl-install/standalone/harddrake2 +++ b/perl-install/standalone/harddrake2 @@ -260,7 +260,8 @@ foreach (@harddrake::data::tree) { if ($Ident eq "AUDIO") { require harddrake::sound; my $alter = harddrake::sound::get_alternative($_->{driver}); - $_->{alternative_drivers} = join(':', @$alter) if $alter->[0] ne 'unknown'; + my $alternative_drivers = join(':', @$alter) if $alter->[0] ne 'unknown'; + $_->{alternative_drivers} = $alternative_drivers if $alternative_drivers; } rename_field($_, 'usb_description', 'description'); rename_field($_, 'vendor_name', 'Vendor'); |