diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 88a16fd6..0e3efbd9 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -162,6 +162,8 @@ class Pungi(pypungi.PungiBase): yumvars['basearch'] = yum.rpmUtils.arch.getBaseArch(myarch=self.config.get('pungi', 'arch')) yumconf.yumvar = yumvars self.ayum._conf = yumconf + # I have no idea why this fixes a traceback, but James says it does. + del self.ayum.prerepoconf self.ayum.repos.setCacheDir(self.ayum.conf.cachedir) arch = self.config.get('pungi', 'arch')