- Create repoview content in the tree

This commit is contained in:
Jesse Keating 2007-09-14 17:48:56 -04:00 committed by Jesse Keating
parent f074a600de
commit ee22bb65ae
3 changed files with 25 additions and 2 deletions

View File

@ -1,3 +1,6 @@
* Fri Sep 14 2007 Jesse Keating <jkeating@redhat.com>
- Create repoview content in the tree
* Wed Sep 12 2007 Jesse Keating <jkeating@redhat.com>
- Remove python2.5 needs (Mark McLoughlin)
- Consolidate the download code for easier maint. (Mark McLoughlin)

View File

@ -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

View File

@ -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."""