]> git.ipfire.org Git - pakfire.git/commitdiff
Check if build arch is supported by host.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 26 Dec 2011 16:01:09 +0000 (17:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 1 Jan 2012 12:16:49 +0000 (13:16 +0100)
python/pakfire/builder.py

index 9b33694bbf1fa4ad8dae0c2c82b5109132b59b78..c089a60ef6cc94be5328260e2ffcae134dd8b270 100644 (file)
@@ -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")