From: Felix Fietkau Date: Mon, 4 Aug 2008 22:22:43 +0000 (+0000) Subject: scripts/feeds: properly handle virtual packages as well, use the first available... X-Git-Tag: reboot~25898 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9cda3fb0843c3ab21eb86b6b2761b31bad59912e;p=openwrt%2Fstaging%2Fjogo.git scripts/feeds: properly handle virtual packages as well, use the first available provider by default SVN-Revision: 12103 --- diff --git a/scripts/metadata.pm b/scripts/metadata.pm index a220231f0d..fd18b18a29 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}; } };