scripts/feeds: properly handle virtual packages as well, use the first available provider by default
SVN-Revision: 12103
This commit is contained in:
parent
bcf75aca7b
commit
9cda3fb084
@ -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};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user