From a7a43e413b0524af18a830f9156042f3d29fbd64 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 29 Jun 2010 15:58:55 -0700 Subject: [PATCH] Fix a traceback (#609247) --- src/pypungi/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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')