Message ID | 20111214180608.GS28260@dream.aleph1.co.uk |
---|---|
State | Accepted |
Headers | show |
diff --git a/lib/Sbuild/ChrootInfo.pm b/lib/Sbuild/ChrootInfo.pm index 75bf07b..a417a9a 100644 --- a/lib/Sbuild/ChrootInfo.pm +++ b/lib/Sbuild/ChrootInfo.pm @@ -124,9 +124,9 @@ sub find { $chroot = "${namespace}:${distribution}"; } - if ($arch_set && !$arch_found && $arch ne "") { + if ($arch_set && !$arch_found && $host_arch ne "") { # TODO: Return error, rather than die. - die "Chroot $distribution for architecture $arch not found\n"; + die "Chroot $distribution for architecture $host_arch not found\n"; return undef; } }