X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a40177e0b251b982970f3a230945c1f19519aef4..c291b847846f5921d669b17478cbf59f0c83ee19:/scripts/metadata.pm diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 917fbec07..fd18b18a2 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -76,7 +76,13 @@ sub parse_package_metadata($) { /^Provides: \s*(.+)\s*$/ and do { my @vpkg = split /\s+/, $1; foreach my $vpkg (@vpkg) { - $package{$vpkg} or $package{$vpkg} = { vdepends => [] }; + $package{$vpkg} or $package{$vpkg} = { + name => $vpkg, + vdepends => [], + src => $src, + subdir => $subdir, + makefile => $makefile + }; push @{$package{$vpkg}->{vdepends}}, $pkg->{name}; } }; @@ -115,7 +121,7 @@ sub parse_package_metadata($) { /^Preconfig-Default:\s*(.*?)\s*$/ and $preconfig->{default} = $1; } close FILE; - return %category; + return 1; } 1;