X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/dda0649ef37ceb08df09c0dbc15f27cbdc8285d5..be07fabdd80da56125283caf3938b01d01e3b23e:/scripts/metadata.pm diff --git a/scripts/metadata.pm b/scripts/metadata.pm index ff39e346e..a220231f0 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -96,7 +96,7 @@ sub parse_package_metadata($) { $type =~ /ipkg/ and $pkg->{tristate} = 1; } }; - /^Config: \s*(.*)\s*$/ and $pkg->{config} = "$1\n".get_multiline(*FILE); + /^Config: \s*(.*)\s*$/ and $pkg->{config} = "$1\n".get_multiline(*FILE, "\t"); /^Prereq-Check:/ and $pkg->{prereq} = 1; /^Preconfig:\s*(.+)\s*$/ and do { my $pkgname = $pkg->{name}; @@ -115,7 +115,7 @@ sub parse_package_metadata($) { /^Preconfig-Default:\s*(.*?)\s*$/ and $preconfig->{default} = $1; } close FILE; - return %category; + return 1; } 1;