From: Felix Fietkau Date: Sun, 1 Jun 2014 15:18:47 +0000 (+0000) Subject: metadata.pl: suppress profile config.in code for targets that have subtargets (fixes... X-Git-Url: https://git.archive.openwrt.org/?a=commitdiff_plain;h=b17e073ff91cbc02efb923555c222cec3c977aa7;p=15.05%2Fopenwrt.git metadata.pl: suppress profile config.in code for targets that have subtargets (fixes #14480) Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40896 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- diff --git a/scripts/metadata.pl b/scripts/metadata.pl index f075525e1d..041a250cdb 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -75,7 +75,10 @@ sub parse_target_metadata() { } close FILE; foreach my $target (@target) { - next if @{$target->{subtargets}} > 0; + if (@{$target->{subtargets}} > 0) { + $target->{profiles} = []; + next; + } @{$target->{profiles}} > 0 or $target->{profiles} = [ { id => 'Default',