mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-01 13:54:33 +08:00
scripts/package-metadata.pl: fix generation of dependencies on virtual packages
Dependencies on purely virtual packages (satisfied by PROVIDES) that were not using "selects" ("+" flag) would be prepended with the prefix "PACKAGE_" twice, breaking the first alternative. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
parent
4f272dd032
commit
6177b649ca
@ -193,12 +193,15 @@ sub mconf_depends {
|
|||||||
|
|
||||||
$m = "select";
|
$m = "select";
|
||||||
next if $only_dep;
|
next if $only_dep;
|
||||||
|
|
||||||
|
$flags =~ /@/ or $depend = "PACKAGE_$depend";
|
||||||
} else {
|
} else {
|
||||||
if ($vdep = $package{$depend}->{vdepends}) {
|
if ($vdep = $package{$depend}->{vdepends}) {
|
||||||
$depend = join("||", map { "PACKAGE_".$_ } @$vdep);
|
$depend = join("||", map { "PACKAGE_".$_ } @$vdep);
|
||||||
|
} else {
|
||||||
|
$flags =~ /@/ or $depend = "PACKAGE_$depend";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$flags =~ /@/ or $depend = "PACKAGE_$depend";
|
|
||||||
if ($condition) {
|
if ($condition) {
|
||||||
if ($m =~ /select/) {
|
if ($m =~ /select/) {
|
||||||
next if $depend eq $condition;
|
next if $depend eq $condition;
|
||||||
|
Loading…
Reference in New Issue
Block a user