]> git.ipfire.org Git - pakfire.git/commitdiff
Pass architecture to the Pakfire module as a string instead of Arch object
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 Mar 2019 13:23:17 +0000 (13:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 13 Mar 2019 13:23:17 +0000 (13:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/base.py

index 39eb3fb7efc029ac099d1baa7e9fc3ce8ae672fa..9afa23faade68098aed065b75152c9dacfe69350 100644 (file)
@@ -44,7 +44,7 @@ class Pakfire(_pakfire.Pakfire):
        mode = None
 
        def __init__(self, path="/", config=None, arch=None, distro=None, cache_path=None):
-               _pakfire.Pakfire.__init__(self, path, arch or system.native_arch)
+               _pakfire.Pakfire.__init__(self, path, "%s" % (arch or system.native_arch))
 
                # Initialise logging system
                self.log = self._setup_logger()