diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-12-02 18:34:02 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-12-02 18:34:02 +0000 |
commit | 00869d816fe6aa65231eab6a0685ac476cb1040c (patch) | |
tree | 70f6a162588b9fb4aac0fa9fcff1997558026f54 | |
parent | 81f7cbbdc28fe9bb5b291e4bb82aa96b00e27d12 (diff) | |
download | drakx-backup-do-not-use-00869d816fe6aa65231eab6a0685ac476cb1040c.tar drakx-backup-do-not-use-00869d816fe6aa65231eab6a0685ac476cb1040c.tar.gz drakx-backup-do-not-use-00869d816fe6aa65231eab6a0685ac476cb1040c.tar.bz2 drakx-backup-do-not-use-00869d816fe6aa65231eab6a0685ac476cb1040c.tar.xz drakx-backup-do-not-use-00869d816fe6aa65231eab6a0685ac476cb1040c.zip |
(do_switch) make it more readable
-rw-r--r-- | perl-install/harddrake/sound.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm index 03dce73aa..fb02b108e 100644 --- a/perl-install/harddrake/sound.pm +++ b/perl-install/harddrake/sound.pm @@ -200,8 +200,8 @@ sub do_switch { $modules_conf->set_sound_slot("sound-slot-$index", $new_driver); $modules_conf->write; if ($new_driver =~ /^snd-/) { # new driver is an alsa one - $in->do_pkgs->ensure_binary_is_installed(@$_, 1) foreach ([ qw(alsa-utils alsactl) ], - [ qw(aoss aoss) ]); + $in->do_pkgs->ensure_binary_is_installed(qw(alsa-utils alsactl), 1); + $in->do_pkgs->ensure_binary_is_installed(qw(aoss aoss), 1); rooted("service alsa start") if $::isStandalone && !$blacklisted; rooted("/sbin/chkconfig --add alsa") if $::isStandalone; load($modules_conf, $new_driver) if $::isStandalone; # service alsa is buggy |