From d25e939363c18824b58f545d7332c4e960184160 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Tue, 2 Oct 2018 04:11:41 +0200 Subject: [PATCH] suppress warnings when the test for the arch-test binary fails --- mmdebstrap | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mmdebstrap b/mmdebstrap index a0b1489..a55ce59 100755 --- a/mmdebstrap +++ b/mmdebstrap @@ -1282,7 +1282,10 @@ sub main() { if ($hostarch ne $nativearch) { my $pid = open my $fh, '-|' // die "failed to fork(): $!"; if ($pid == 0) { - { exec 'arch-test', '-n', $nativearch; } + { + no warnings; # don't print a warning if the following fails + exec 'arch-test', '-n', $nativearch; + } # if exec didn't work (for example because the arch-test program is # missing) prepare for the worst and assume that the architecture # cannot be executed