fix Apt::Architectures architecture list

This commit is contained in:
Johannes 'josch' Schauer 2018-11-04 20:37:36 +01:00
parent 935f5b7a66
commit a9765a3ad2
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -573,7 +573,11 @@ sub setup {
# the host system might have configured additional architectures # the host system might have configured additional architectures
# force only the native architecture # force only the native architecture
if (scalar @{$options->{foreignarchs}} > 0) { if (scalar @{$options->{foreignarchs}} > 0) {
print $conf "Apt::Architectures \"$options->{nativearch} @{$options->{foreignarchs}}\";\n"; print $conf "Apt::Architectures { \"$options->{nativearch}\"; ";
foreach my $arch (@{$options->{foreignarchs}}) {
print $conf "\"$arch\"; ";
}
print $conf "};\n";
} else { } else {
print $conf "Apt::Architectures \"$options->{nativearch}\";\n"; print $conf "Apt::Architectures \"$options->{nativearch}\";\n";
} }