mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
metadata.pl: suppress profile config.in code for targets that have subtargets (fixes #14480)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40896 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5a47fc0d71
commit
b17e073ff9
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user