remove the dummy profile that was created on targets that have subtargets
authorFelix Fietkau <nbd@openwrt.org>
Sun, 21 Oct 2007 06:44:06 +0000 (06:44 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 21 Oct 2007 06:44:06 +0000 (06:44 +0000)
SVN-Revision: 9383

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',