metadata.pl: suppress profile config.in code for targets that have subtargets (fixes...
authorFelix Fietkau <nbd@openwrt.org>
Sun, 1 Jun 2014 15:18:47 +0000 (15:18 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 1 Jun 2014 15:18:47 +0000 (15:18 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40896

scripts/metadata.pl

index f075525e1dadea8256844edede19a3a0f12afc22..041a250cdbe6767f290d046f583bcb5732bb89de 100755 (executable)
@@ -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',