diff options
-rw-r--r-- | lib/MDV/Distribconf.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/MDV/Distribconf.pm b/lib/MDV/Distribconf.pm index 715cd63..6ec9c87 100644 --- a/lib/MDV/Distribconf.pm +++ b/lib/MDV/Distribconf.pm @@ -304,16 +304,16 @@ sub parse_hdlists { chomp; length or next; my ($options, %media); - ($options, @media{qw/hdlist path name size/}) = /^\s*(?:(.*):)?(\S+)\s+(\S+)\s+([^(]*)(?:\s+\((\w+)\))?$/; + ($options, @media{qw(hdlist path name size)}) = /^\s*(?:(.*):)?(\S+)\s+(\S+)\s+([^(]*)(?:\s+\((\w+)\))?$/; if (!$media{hdlist}) { # Hack because hdlists format really sucks - ($options, @media{qw/hdlist path name size/}) = /^\s*(?:(.*):)?(\S+)\s+(\S+)\s+(.*)$/; + ($options, @media{qw(hdlist path name size)}) = /^\s*(?:(.*):)?(\S+)\s+(\S+)\s+(.*)$/; } if ($options) { $media{$_} = 1 foreach split /:/, $options; } $media{name} =~ s/\s*$//; $media{path} =~ s!^$distrib->{mediadir}/+!!; - foreach (qw/hdlist name size/, $options ? split(/:/, $options) : ()) { + foreach (qw(hdlist name size), $options ? split(/:/, $options) : ()) { $distrib->{cfg}->newval($media{path}, $_, $media{$_}) or die "Can't set value [$_]\n"; } |