From: Stefan Schantl Date: Mon, 26 Dec 2011 16:01:09 +0000 (+0100) Subject: Check if build arch is supported by host. X-Git-Tag: 0.9.20~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd6a992089d8ff49653e5375c7bfc9cdd3bf5e59;p=pakfire.git Check if build arch is supported by host. --- diff --git a/python/pakfire/builder.py b/python/pakfire/builder.py index 9b33694bb..c089a60ef 100644 --- a/python/pakfire/builder.py +++ b/python/pakfire/builder.py @@ -121,6 +121,10 @@ class BuildEnviron(object): self.distro = self.pakfire.distro self.path = self.pakfire.path + # Check if this host can build the requested architecture. + if not self.arch in self.pakfire.config.supported_arches: + raise BuildError, _("Cannot build for %s on this host.") % self.arch + # Where do we put the result? self.resultdir = os.path.join(self.path, "result")