log = logging.getLogger("pbs.config")
class PakfireConfig(base.Object):
- def init(self, distro=None, repos=None, vendor=None, contact=None, mirrored=True):
+ def init(self, distro=None, repos=None, vendor=None, contact=None,
+ arch=None, mirrored=True):
self.distro = distro
self.repos = set()
self.vendor = vendor
self.contact = contact
+ # Architecture
+ self.arch = arch
+
# Should the repositories use any mirrors?
self.mirrored = mirrored
t.flush()
# Launch a new Pakfire instance
- return pakfire.Pakfire(conf=t.name, logger=self._log, offline=False)
+ return pakfire.Pakfire(arch=self.arch, conf=t.name,
+ logger=self._log, offline=False)
def __exit__(self, type, value, traceback):
pass