From b0b48ca344eb84ad3f248ab2b108cc72cdbdc273 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 21 Oct 2012 13:45:14 +0200 Subject: [PATCH] Fix detecting system architecture on systems which are not one of the primary arches. --- python/pakfire/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5