summaryrefslogtreecommitdiff
path: root/scripts/metadata.pm
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 /scripts/metadata.pm
parentbcf75aca7b19a81a7c03b7bd31cb8056f79b3a2d (diff)
downloadmtk-20170518-9cda3fb0843c3ab21eb86b6b2761b31bad59912e.zip
mtk-20170518-9cda3fb0843c3ab21eb86b6b2761b31bad59912e.tar.gz
mtk-20170518-9cda3fb0843c3ab21eb86b6b2761b31bad59912e.tar.bz2
scripts/feeds: properly handle virtual packages as well, use the first available provider by default
SVN-Revision: 12103
Diffstat (limited to 'scripts/metadata.pm')
-rw-r--r--scripts/metadata.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/metadata.pm b/scripts/metadata.pm
index a220231..fd18b18 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};
}
};