remove the dummy profile that was created on targets that have subtargets
[openwrt/svn-archive/archive.git] / scripts / metadata.pl
index 7b3b74b3c6b3726e3a3eda4098c092b0a54b3f27..f84bd462fa3440979bac699a3ab9b753508e7943 100755 (executable)
@@ -72,6 +72,7 @@ sub parse_target_metadata() {
        }
        close FILE;
        foreach my $target (@target) {
+               next if @{$target->{subtargets}} > 0;
                @{$target->{profiles}} > 0 or $target->{profiles} = [
                        {
                                id => 'Default',