@@ -388,21 +388,13 @@ sub run_chroot_session {
$self->check_abort();
my $chroot_arch = $self->chroot_arch();
- if ($self->get('Arch') ne $chroot_arch) {
- Sbuild::Exception::Build->throw(error => "Build architecture (" . $self->get('Arch') .
- ") is not the same as the chroot architecture (" .
- $chroot_arch . ")",
- info => "Please specify the correct architecture with --arch, or use a chroot of the correct architecture",
- failstage => "create-session");
- }
-
- my $chroot_arch = $self->chroot_arch();
if ($self->get_conf('BUILD_ARCH') ne $chroot_arch) {
Sbuild::Exception::Build->throw(
error => "Requested build architecture (" .
$self->get_conf('BUILD_ARCH') .
") and chroot architecture (" . $chroot_arch .
") do not match. Skipping build.",
+ info => "Please specify the correct architecture with --build-arch, or use a chroot of the correct architecture",
failstage => "create-session");
}
From: Wookey <wookey@wookware.org> --- lib/Sbuild/Build.pm | 10 +--------- 1 files changed, 1 insertions(+), 9 deletions(-)