From: Michael Tremer Date: Wed, 13 Mar 2019 13:23:17 +0000 (+0000) Subject: Pass architecture to the Pakfire module as a string instead of Arch object X-Git-Tag: 0.9.28~1285^2~1073 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3084841c81069c32374fb9a1c4553d45b4ed107;p=pakfire.git Pass architecture to the Pakfire module as a string instead of Arch object Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/base.py b/src/pakfire/base.py index 39eb3fb7e..9afa23faa 100644 --- a/src/pakfire/base.py +++ b/src/pakfire/base.py @@ -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()