From e592a152566d32dc2c33faecf57a10ae01b02055 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 19 Sep 2007 19:42:23 +0000 Subject: fix passing module options when module name contains a '-' character --- perl-install/modules.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/modules.pm') diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 83410dfd6..f86aab09a 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -96,7 +96,8 @@ sub load_with_options { @l = remove_loaded_modules(@l) or return; - load_raw(\@l, $h_options); + my %options = map { cond_mapping_24_26($_) => $h_options->{$_} } keys %$h_options; + load_raw(\@l, \%options); } sub load { my (@l) = @_; @@ -108,7 +109,7 @@ sub load_and_configure { my ($conf, $module, $o_options) = @_; my @l = remove_loaded_modules(dependencies_closure(cond_mapping_24_26($module))); - load_raw(\@l, { $module => $o_options }); + load_raw(\@l, { cond_mapping_24_26($module) => $o_options }); if (member($module, 'imm', 'ppa') && ! -d "/proc/sys/dev/parport/parport0/devices/$module") { -- cgit v1.2.1