From: Jonas Gorski Date: Mon, 22 Oct 2012 22:16:19 +0000 (+0000) Subject: scrips/metadata.pl: fix broken targets with subtargets being selectable X-Git-Tag: reboot~12541 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=53c014e221e63c3d7f63764e010251c1ae2d2abf;p=openwrt%2Fstaging%2Fblogic.git scrips/metadata.pl: fix broken targets with subtargets being selectable r26926 moved all target features to subtargets if present, which had the side effect that broken targets are available for selection, just without any available subtargets (since they are still marked as broken). Fix this by explicitly letting the top level target also depend on broken. SVN-Revision: 33892 --- diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 7afc38892701..b04cd8cc3d94 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -233,6 +233,7 @@ EOF } if (@{$target->{subtargets}} > 0) { $confstr .= "\tselect HAS_SUBTARGETS\n"; + grep { /broken/ } @{$target->{features}} and $confstr .= "\tdepends BROKEN\n"; } else { $confstr .= $features; }