From 98f5edd4de106d081414494f7e18470690b6faa8 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 23 Aug 2002 19:33:14 +0000 Subject: 20mdk: - florin fixes for firewalling - check that alternative is unknown, not the current driver, before saying that there's no alternative. anyway, our only caller cannot get there's with a current unknown driver since he only try listed/know drivers .... --- perl-install/harddrake/sound.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perl-install/harddrake/sound.pm') diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index d1af14606..dc25af4fb 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -151,7 +151,7 @@ sub switch { my $alternative = get_alternative($driver); if ($alternative) { my $new_driver = $alternative->[0]; - if ($driver eq "unknown") { + if ($new_driver eq "unknown") { $in->ask_warn(_("No alternative driver"), _("There's no known OSS/ALSA alternative driver for your sound card (%s)", $device->{description})); @@ -172,7 +172,6 @@ sub switch { $in->ask_warn(_("No known driver"), _("There's no known driver for your sound card (%s)", $device->{description})); - } elsif (is_listed($driver)) { } else { $in->ask_warn(_("Unkown driver"), _("The \"%s\" driver for your sound card is unlisted\n -- cgit v1.2.1