X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/7a694d4e5f8054d5c4b05fbed69fb1a38f387e29..b546bd19deab1d2f92880ea67908a9d7abb5c3ed:/scripts/metadata.pm?ds=sidebyside diff --git a/scripts/metadata.pm b/scripts/metadata.pm index a220231f0..a527d68f8 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -54,6 +54,7 @@ sub parse_package_metadata($) { $srcpackage{$src} = []; undef $pkg; }; + next unless $src; /^Package:\s*(.+?)\s*$/ and do { $pkg = {}; $pkg->{src} = $src; @@ -76,7 +77,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}; } };