Add the repo from topdir to our yumobject for lorax.

This allows lorax to make use of the local low cost repo to fetch
packages from.  Buildinstall would previously get passed this repo as a
runtime argument.
This commit is contained in:
Jesse Keating 2011-04-28 23:35:42 -07:00
parent 7a8ab8817a
commit e3a59fe484
1 changed files with 5 additions and 0 deletions

View File

@ -819,6 +819,11 @@ class Pungi(pypungi.PungiBase):
self._inityum()
yb = self.ayum
# Add the repo in the destdir to our yum object
self._add_yum_repo('ourtree',
'file://%s' % self.topdir,
cost=10)
product = self.config.get('pungi', 'name')
version = self.config.get('pungi', 'version')
release = '%s %s' % (self.config.get('pungi', 'name'), self.config.get('pungi', 'version'))