Create debuginfo metadata when creating metadata, if we've gathered debuginfo

Move cachedir to a variable definition since we use it more than once.
This commit is contained in:
Jesse Keating 2008-07-08 18:00:01 -04:00
parent 7c2e8593c8
commit 3e62130a6c

View File

@ -605,8 +605,15 @@ class Pungi(pypungi.PungiBase):
self.config.get('default', 'version'),
self.config.get('default', 'arch'))
cachedir = self.config.get('default', 'cachedir')
# setup the createrepo call
self._makeMetadata(self.topdir, self.config.get('default', 'cachedir'), compsfile, repoview=True, repoviewtitle=repoviewtitle)
self._makeMetadata(self.topdir, cachedir, compsfile, repoview=True, repoviewtitle=repoviewtitle)
# create repodata for debuginfo
if self.config.getboolean('default', 'debuginfo'):
path = os.path.join(self.archdir, 'debug')
self._makeMetadata(path, cachedir, repoview=False)
def doBuildinstall(self):
"""Run anaconda-runtime's buildinstall on the tree."""