From ee22bb65ae2bbc5ee580a760613a334541d8b360 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Fri, 14 Sep 2007 17:48:56 -0400 Subject: [PATCH] - Create repoview content in the tree --- Changelog | 3 +++ pungi.spec | 2 +- pypungi/pungi.py | 22 +++++++++++++++++++++- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 69f19bc0..084f3354 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,6 @@ +* Fri Sep 14 2007 Jesse Keating +- Create repoview content in the tree + * Wed Sep 12 2007 Jesse Keating - Remove python2.5 needs (Mark McLoughlin) - Consolidate the download code for easier maint. (Mark McLoughlin) diff --git a/pungi.spec b/pungi.spec index 0198e1cd..315358ee 100644 --- a/pungi.spec +++ b/pungi.spec @@ -10,7 +10,7 @@ License: GPLv2 URL: http://hosted.fedoraproject.org/projects/pungi Source0: http://linux.duke.edu/projects/%{name}/release/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires: anaconda-runtime, yum => 3.0.3, pykickstart => 1.13 +Requires: anaconda-runtime, yum => 3.0.3, repoview BuildRequires: python-devel BuildArch: noarch diff --git a/pypungi/pungi.py b/pypungi/pungi.py index 9fca9753..a8559b68 100755 --- a/pypungi/pungi.py +++ b/pypungi/pungi.py @@ -83,7 +83,27 @@ class Pungi(pypungi.PungiBase): createrepo.append(self.topdir) # run the command - pypungi._doRunCommand(createrepo, self.logger, rundir=self.topdir) + pypungi._doRunCommand(createrepo, self.logger) + + # setup the repoview call + repoview = ['/usr/bin/repoview'] + repoview.append('--quiet') + repoview.append('--title') + if self.config.get('default', 'flavor'): + repoview.append('%s %s: %s - %s' % (self.config.get('default', 'name'), + self.config.get('default', 'version'), + self.config.get('default', 'flavor'), + self.config.get('default', 'arch'))) + else: + repoview.append('%s %s - %s' % (self.config.get('default', 'name'), + self.config.get('default', 'version'), + self.config.get('default', 'arch'))) + + repoview.append(self.topdir) + + # run the command + pypungi._doRunCommand(repoview, self.logger) + def doBuildinstall(self): """Run anaconda-runtime's buildinstall on the tree."""