summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-09-03 15:21:45 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-09-03 15:21:45 +0000
commit5278069076e1a24c14466a3733ea87a446475d66 (patch)
treeec996804e61fe1ac155524548eaf38b6b8bef38e /perl-install
parent8b522faed2374842d154c4306606abd11af83ffe (diff)
downloaddrakx-backup-do-not-use-5278069076e1a24c14466a3733ea87a446475d66.tar
drakx-backup-do-not-use-5278069076e1a24c14466a3733ea87a446475d66.tar.gz
drakx-backup-do-not-use-5278069076e1a24c14466a3733ea87a446475d66.tar.bz2
drakx-backup-do-not-use-5278069076e1a24c14466a3733ea87a446475d66.tar.xz
drakx-backup-do-not-use-5278069076e1a24c14466a3733ea87a446475d66.zip
no_comment
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/modules.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index d036573c7..f8bacd5cd 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -215,9 +215,9 @@ foreach (@drivers_by_category) {
my $l = pop @l;
foreach (keys %$l) { $drivers{$_} = [ $l->{$_}, @l ]; }
}
-foreach (keys %drivers) {
- my %l; @{$l{@drivers_fields}} = @{$drivers{$_}};
- $drivers{$_} = \%l;
+while (my ($k, $v) = each %drivers) {
+ my %l; @l{@drivers_fields} = @$v;
+ $drivers{$k} = \%l;
}