aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-01-14 18:46:36 +0100
committerJo-Philipp Wich <jo@mein.io>2018-01-14 19:00:06 +0100
commita405a93fa69cf836ed628ac86b90a6a718c36bae (patch)
tree62d2166940ed8ff0d56067242f759c0607148724 /scripts
parent06d51dbb9e4c3160094b61354115b80f0fc7dae8 (diff)
downloadupstream-a405a93fa69cf836ed628ac86b90a6a718c36bae.tar.gz
upstream-a405a93fa69cf836ed628ac86b90a6a718c36bae.tar.bz2
upstream-a405a93fa69cf836ed628ac86b90a6a718c36bae.zip
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package-metadata.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package-metadata.pl b/scripts/package-metadata.pl
index 36b1160d8c..53bb45a62c 100755
--- a/scripts/package-metadata.pl
+++ b/scripts/package-metadata.pl
@@ -209,7 +209,7 @@ sub mconf_depends {
$flags =~ /@/ or $depend = "PACKAGE_$depend";
} else {
my $vdep = $vpackage{$depend};
- if ($vdep) {
+ if ($vdep && @$vdep > 0) {
$depend = join("||", map { "PACKAGE_".$_->{name} } @$vdep);
} else {
$flags =~ /@/ or $depend = "PACKAGE_$depend";