Always re-init the yum object (#717089)

This commit is contained in:
Jesse Keating 2011-07-18 15:11:19 -07:00
parent 7e65e60fc6
commit d6490ebf6e
1 changed files with 2 additions and 2 deletions

View File

@ -817,8 +817,8 @@ class Pungi(pypungi.PungiBase):
def doBuildinstall(self):
"""Run lorax on the tree."""
if not self.ayum:
self._inityum()
# the old ayum object has transaction data that confuse lorax, reinit.
self._inityum()
# Add the repo in the destdir to our yum object
self._add_yum_repo('ourtree',