check for dpkg-dev being installed for dpkg-architecture when doing foreign fakechroot

This commit is contained in:
Johannes Schauer Marin Rodrigues 2024-02-01 05:58:32 +01:00
parent 35cd477fea
commit 81589889f9
Signed by untrusted user: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -5227,6 +5227,12 @@ sub main() {
} }
} }
if (defined $options->{qemu} && $options->{mode} eq 'fakechroot') {
if (!can_execute 'dpkg-architecture') {
error "cannot find dpkg-architecture";
}
}
{ {
$options->{suite} = undef; $options->{suite} = undef;
if (scalar @ARGV > 0) { if (scalar @ARGV > 0) {