diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-11-27 20:50:12 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-11-27 20:50:12 +0000 |
commit | b0d554c4155060ed665844fdf7b2a08db9bb3356 (patch) | |
tree | d1236029c2ac147b49a2da74bf132c3f56619406 /perl-install/Xconfig/parse.pm | |
parent | c2b148e1e94892d8d72000ed087b607ae28b5808 (diff) | |
download | drakx-b0d554c4155060ed665844fdf7b2a08db9bb3356.tar drakx-b0d554c4155060ed665844fdf7b2a08db9bb3356.tar.gz drakx-b0d554c4155060ed665844fdf7b2a08db9bb3356.tar.bz2 drakx-b0d554c4155060ed665844fdf7b2a08db9bb3356.tar.xz drakx-b0d554c4155060ed665844fdf7b2a08db9bb3356.zip |
perl_checker adaptations
Diffstat (limited to 'perl-install/Xconfig/parse.pm')
-rw-r--r-- | perl-install/Xconfig/parse.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/perl-install/Xconfig/parse.pm b/perl-install/Xconfig/parse.pm index aefc2742a..0099b4666 100644 --- a/perl-install/Xconfig/parse.pm +++ b/perl-install/Xconfig/parse.pm @@ -148,13 +148,6 @@ my @want_string = qw(Identifier DeviceName VendorName ModelName BoardName Driver @want_string = map { lc } @want_string; sub from_raw { - foreach my $e (@_) { - ($e->{l}, my $l) = ({}, $e->{l}); - from_raw__rec($e, $_) foreach @$l; - - delete $e->{kind}; - } - sub from_raw__rec { my ($current, $e) = @_; if ($e->{l}) { @@ -177,6 +170,13 @@ sub from_raw { } delete $e->{name}; } + + foreach my $e (@_) { + ($e->{l}, my $l) = ({}, $e->{l}); + from_raw__rec($e, $_) foreach @$l; + + delete $e->{kind}; + } } sub before_to_string { |