]> git.ipfire.org Git - pakfire.git/commitdiff
Fix detecting system architecture on systems which are not one of the primary arches.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Oct 2012 11:45:14 +0000 (13:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Oct 2012 11:46:30 +0000 (13:46 +0200)
python/pakfire/system.py

index 44d43a200642405705c3a0a1d97c09554b804402..a9154de98c7ec53719423f7ff37fb7c4c38b9c3b 100644 (file)
@@ -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