diff mbox

0005-Attempt-to-fix.patch

Message ID 20111214180608.GS28260@dream.aleph1.co.uk
State Accepted
Headers show

Commit Message

Wookey Dec. 14, 2011, 6:06 p.m. UTC
From dd180e00da03f2103106c6cca0700cadb1eead30 Mon Sep 17 00:00:00 2001
From: Hector Oron <hector.oron@toby-churchill.com>
Date: Mon, 12 Dec 2011 19:21:28 +0000
Subject: [PATCH 05/17] Attempt to fix:

	$ 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@toby-churchill.com>
---
 lib/Sbuild/ChrootInfo.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

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