Fix a traceback (#609247)

This commit is contained in:
Jesse Keating 2010-06-29 15:58:55 -07:00
parent 39326ef54a
commit a7a43e413b

View File

@ -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')