aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
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
commitfce073c92947e74fb98e56abf6972267a7e2479c (patch)
treec98899b09cf1ee0eee84096c762204040343c2ce /scripts
parent763d1b4e13a1968cc38b69f826f86ae78318375e (diff)
downloadupstream-fce073c92947e74fb98e56abf6972267a7e2479c.tar.gz
upstream-fce073c92947e74fb98e56abf6972267a7e2479c.tar.bz2
upstream-fce073c92947e74fb98e56abf6972267a7e2479c.zip
scripts/feeds: properly handle virtual packages as well, use the first available provider by default
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12103 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-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};
}
};