mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
metadata: do not emit broken kconfig dependency statements
Prevent emitting broken dependency statements when resolving references
to non existing packages to an empty provider list.
Fixes: 47d6b05ad3
("metadata: always resolve dependencies through provides list")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
06d51dbb9e
commit
a405a93fa6
@ -209,7 +209,7 @@ sub mconf_depends {
|
|||||||
$flags =~ /@/ or $depend = "PACKAGE_$depend";
|
$flags =~ /@/ or $depend = "PACKAGE_$depend";
|
||||||
} else {
|
} else {
|
||||||
my $vdep = $vpackage{$depend};
|
my $vdep = $vpackage{$depend};
|
||||||
if ($vdep) {
|
if ($vdep && @$vdep > 0) {
|
||||||
$depend = join("||", map { "PACKAGE_".$_->{name} } @$vdep);
|
$depend = join("||", map { "PACKAGE_".$_->{name} } @$vdep);
|
||||||
} else {
|
} else {
|
||||||
$flags =~ /@/ or $depend = "PACKAGE_$depend";
|
$flags =~ /@/ or $depend = "PACKAGE_$depend";
|
||||||
|
Loading…
Reference in New Issue
Block a user