summaryrefslogtreecommitdiff
path: root/scripts/metadata.pl
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2012-10-22 22:16:19 +0000
committerJonas Gorski <jogo@openwrt.org>2012-10-22 22:16:19 +0000
commit53c014e221e63c3d7f63764e010251c1ae2d2abf (patch)
treecdddcff9c1b6b6baf4ff73174f86267d4aa49f80 /scripts/metadata.pl
parent3cf25176a4e942891eb94f245b7d4e35f305195b (diff)
downloadmtk-20170518-53c014e221e63c3d7f63764e010251c1ae2d2abf.zip
mtk-20170518-53c014e221e63c3d7f63764e010251c1ae2d2abf.tar.gz
mtk-20170518-53c014e221e63c3d7f63764e010251c1ae2d2abf.tar.bz2
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
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-xscripts/metadata.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 7afc388..b04cd8c 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;
}