[buildd-tools-devel] [PATCH 05/17] Attempt to fix:

wookey at wookware.org wookey at wookware.org
Tue Dec 13 02:37:30 UTC 2011


From: Hector Oron <hector.oron at toby-churchill.com>

	$ sbuild -d sid-amd64-sbuild hello_2.6-1 --host=armel --build=i386
	Chroot sid-amd64-sbuild for architecture i386 not found
Signed-off-by: Hector Oron <hector.oron at toby-churchill.com>
---
 lib/Sbuild/ChrootInfo.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

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;
 	}
     }
-- 
1.7.5.4




More information about the Buildd-tools-devel mailing list