From e3a59fe484eca15844f1b21924edae50fb71a4e6 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Thu, 28 Apr 2011 23:35:42 -0700 Subject: [PATCH] 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. --- src/pypungi/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index a9790aa1..56f2ae1f 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -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'))