Explorar el Código

metadata.pl: suppress profile config.in code for targets that have subtargets (fixes #14480)

Signed-off-by: Felix Fietkau <[email protected]>

SVN-Revision: 40896
Felix Fietkau hace 11 años
padre
commit
2c4bde9c8f
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      scripts/metadata.pl

+ 4 - 1
scripts/metadata.pl

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