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-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0b48ca344eb84ad3f248ab2b108cc72cdbdc273;p=people%2Fstevee%2Fpakfire.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 44d43a20..a9154de9 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