- Move the .composeinfo file into the directory we actually publish

This commit is contained in:
Jesse Keating 2007-09-14 18:22:25 -04:00 committed by Jesse Keating
parent ee22bb65ae
commit 5fafe9c962
2 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,6 @@
* Fri Sep 14 2007 Jesse Keating <jkeating@redhat.com>
- Create repoview content in the tree
- Move the .composeinfo file into the directory we actually publish
* Wed Sep 12 2007 Jesse Keating <jkeating@redhat.com>
- Remove python2.5 needs (Mark McLoughlin)

View File

@ -49,7 +49,8 @@ class Pungi(pypungi.PungiBase):
self.common_files = []
self.infofile = os.path.join(self.config.get('default', 'destdir'),
'.composeinfo')
self.config.get('default', 'version'),
'.composeinfo')
def writeinfo(self, line):
"""Append a line to the infofile in self.infofile"""
@ -60,11 +61,11 @@ class Pungi(pypungi.PungiBase):
f.close()
def mkrelative(self, subfile):
"""Return the relative path for 'subfile' underneath 'self.destdir'."""
"""Return the relative path for 'subfile' underneath the version dir."""
if subfile.startswith(self.destdir):
return subfile.replace(self.destdir + os.path.sep, '')
basedir = os.path.join(self.destdir, self.config.get('default', 'version'))
if subfile.startswith(basedir):
return subfile.replace(basedir + os.path.sep, '')
def doCreaterepo(self):
"""Run createrepo to generate repodata in the tree."""