diff options
author | jogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-22 22:16:19 +0000 |
---|---|---|
committer | jogo <jogo@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-22 22:16:19 +0000 |
commit | 4c3545851bf8bbd50a9243768bd53cd577b12bf7 (patch) | |
tree | 13117393a7ca9d53a3c029f95e10663318ec6dff | |
parent | b67c49aee323172e9b7cc44e42db55d64c210d9e (diff) |
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.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33892 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | scripts/metadata.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 7afc38892..b04cd8cc3 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; } |