aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-08-04 22:22:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-08-04 22:22:43 +0000
commit9cda3fb0843c3ab21eb86b6b2761b31bad59912e (patch)
treeb34dcf554643df07c2e4bf17c5c91c8a52a5ced7
parentbcf75aca7b19a81a7c03b7bd31cb8056f79b3a2d (diff)
downloadupstream-9cda3fb0843c3ab21eb86b6b2761b31bad59912e.tar.gz
upstream-9cda3fb0843c3ab21eb86b6b2761b31bad59912e.tar.bz2
upstream-9cda3fb0843c3ab21eb86b6b2761b31bad59912e.zip
scripts/feeds: properly handle virtual packages as well, use the first available provider by default
SVN-Revision: 12103
-rw-r--r--scripts/metadata.pm8
1 files changed, 7 insertions, 1 deletions
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};
}
};