fix a package metadata parsing bug

SVN-Revision: 14735
This commit is contained in:
Felix Fietkau 2009-03-03 14:03:37 +00:00
parent 127296bc45
commit daf7406075

View file

@ -105,7 +105,7 @@ sub parse_package_metadata($) {
$type =~ /ipkg/ and $pkg->{tristate} = 1; $type =~ /ipkg/ and $pkg->{tristate} = 1;
} }
}; };
/^Config: \s*(.*)\s*$/ and $pkg->{config} = "$1\n".get_multiline(*FILE, "\t"); /^Config:\s*(.*)\s*$/ and $pkg->{config} = "$1\n".get_multiline(*FILE, "\t");
/^Prereq-Check:/ and $pkg->{prereq} = 1; /^Prereq-Check:/ and $pkg->{prereq} = 1;
/^Preconfig:\s*(.+)\s*$/ and do { /^Preconfig:\s*(.+)\s*$/ and do {
my $pkgname = $pkg->{name}; my $pkgname = $pkg->{name};