Explorar o código

scripts/metadata.pl: do not emit ARCH selection for a target if it has subtargets

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

SVN-Revision: 45112
Felix Fietkau %!s(int64=10) %!d(string=hai) anos
pai
achega
2900f6984f
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      scripts/metadata.pl

+ 3 - 3
scripts/metadata.pl

@@ -205,11 +205,11 @@ EOF
 		grep { /broken/ } @{$target->{features}} and $confstr .= "\tdepends on BROKEN\n";
 	} else {
 		$confstr .= $features;
+		if ($target->{arch} =~ /\w/) {
+			$confstr .= "\tselect $target->{arch}\n";
+		}
 	}
 
-	if ($target->{arch} =~ /\w/) {
-		$confstr .= "\tselect $target->{arch}\n";
-	}
 	foreach my $dep (@{$target->{depends}}) {
 		my $mode = "depends on";
 		my $flags;