remove the dummy profile that was created on targets that have subtargets
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 21 Oct 2007 06:44:06 +0000 (06:44 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 21 Oct 2007 06:44:06 +0000 (06:44 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9383 3c298f89-4303-0410-b956-a3cf2f4a3e73

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