forked from josch/mmdebstrap
suppress warnings when the test for the arch-test binary fails
This commit is contained in:
parent
edb3c9ed9a
commit
d25e939363
1 changed files with 4 additions and 1 deletions
|
@ -1282,7 +1282,10 @@ sub main() {
|
||||||
if ($hostarch ne $nativearch) {
|
if ($hostarch ne $nativearch) {
|
||||||
my $pid = open my $fh, '-|' // die "failed to fork(): $!";
|
my $pid = open my $fh, '-|' // die "failed to fork(): $!";
|
||||||
if ($pid == 0) {
|
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
|
# if exec didn't work (for example because the arch-test program is
|
||||||
# missing) prepare for the worst and assume that the architecture
|
# missing) prepare for the worst and assume that the architecture
|
||||||
# cannot be executed
|
# cannot be executed
|
||||||
|
|
Loading…
Reference in a new issue