Don't forget to chomp away the newline of the arch-test output

This commit is contained in:
Johannes 'josch' Schauer 2018-09-20 20:49:48 +02:00
parent 49cc8cf32e
commit b7b6b28377
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -955,7 +955,7 @@ sub main() {
sparc64 => 'sparc64',
};
open my $fh, '-|', 'arch-test', '-n', $nativearch // die "failed to fork(): $!";
my $content = do { local $/; <$fh> };
chomp (my $content = do { local $/; <$fh> });
close $fh;
if ($? != 0 or $content ne "$nativearch: ok") {
if (!exists $deb2qemu->{$nativearch}) {