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 7b3b74b..f84bd46 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',