From: Daniel Robbins Date: Thu, 6 Nov 2003 02:53:28 +0000 (+0000) Subject: linux32 fix X-Git-Tag: CATALYST_1_0_1~185 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b24ec223d29accc8f712b775d943428de8b283b3;p=catalyst.git linux32 fix git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@55 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/arch/x86.py b/arch/x86.py index f85919c0..0a8fe823 100644 --- a/arch/x86.py +++ b/arch/x86.py @@ -1,4 +1,4 @@ -import builder +import builder,os # This module defines the various "builder" classes for the various x86 # sub-arches. For example, we have a class to handle building of Pentium 4 @@ -14,6 +14,8 @@ class generic_x86(builder.generic): builder.generic.__init__(self,myspec) self.settings["mainarch"]="x86" if self.settings["hostarch"]=="amd64": + if not os.path.exists("/usr/bin/linux32"): + raise CatalystError,"required /usr/bin/linux32 executable not found (\"emerge linux32\" to fix.)" self.settings["CHROOT"]="linux32 chroot" else: self.settings["CHROOT"]="chroot"