From: Michael Tremer Date: Sun, 21 Oct 2012 11:45:14 +0000 (+0200) Subject: Fix detecting system architecture on systems which are not one of the primary arches. X-Git-Tag: 0.9.24~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0b48ca344eb84ad3f248ab2b108cc72cdbdc273;p=pakfire.git Fix detecting system architecture on systems which are not one of the primary arches. --- diff --git a/python/pakfire/system.py b/python/pakfire/system.py index 44d43a200..a9154de98 100644 --- a/python/pakfire/system.py +++ b/python/pakfire/system.py @@ -55,7 +55,7 @@ class System(object): """ Return the architecture of the host we are running on. """ - if not self.native_arch in self.supported_arches: + if self.supported_arches and not self.native_arch in self.supported_arches: return self.supported_arches[0] return self.native_arch