1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-19 06:25:55 +02:00

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
This commit is contained in:
nbd 2008-08-04 22:22:43 +00:00
parent 613bbc6ab9
commit 6ddc4b5e1b

View File

@ -76,7 +76,13 @@ sub parse_package_metadata($) {
/^Provides: \s*(.+)\s*$/ and do { /^Provides: \s*(.+)\s*$/ and do {
my @vpkg = split /\s+/, $1; my @vpkg = split /\s+/, $1;
foreach my $vpkg (@vpkg) { 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}; push @{$package{$vpkg}->{vdepends}}, $pkg->{name};
} }
}; };