- Move the .composeinfo file into the directory we actually publish
This commit is contained in:
parent
ee22bb65ae
commit
5fafe9c962
@ -1,5 +1,6 @@
|
|||||||
* Fri Sep 14 2007 Jesse Keating <jkeating@redhat.com>
|
* Fri Sep 14 2007 Jesse Keating <jkeating@redhat.com>
|
||||||
- Create repoview content in the tree
|
- 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>
|
* Wed Sep 12 2007 Jesse Keating <jkeating@redhat.com>
|
||||||
- Remove python2.5 needs (Mark McLoughlin)
|
- Remove python2.5 needs (Mark McLoughlin)
|
||||||
|
@ -49,7 +49,8 @@ class Pungi(pypungi.PungiBase):
|
|||||||
|
|
||||||
self.common_files = []
|
self.common_files = []
|
||||||
self.infofile = os.path.join(self.config.get('default', 'destdir'),
|
self.infofile = os.path.join(self.config.get('default', 'destdir'),
|
||||||
'.composeinfo')
|
self.config.get('default', 'version'),
|
||||||
|
'.composeinfo')
|
||||||
|
|
||||||
def writeinfo(self, line):
|
def writeinfo(self, line):
|
||||||
"""Append a line to the infofile in self.infofile"""
|
"""Append a line to the infofile in self.infofile"""
|
||||||
@ -60,11 +61,11 @@ class Pungi(pypungi.PungiBase):
|
|||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
def mkrelative(self, subfile):
|
def mkrelative(self, subfile):
|
||||||
"""Return the relative path for 'subfile' underneath 'self.destdir'."""
|
"""Return the relative path for 'subfile' underneath the version dir."""
|
||||||
|
|
||||||
|
basedir = os.path.join(self.destdir, self.config.get('default', 'version'))
|
||||||
if subfile.startswith(self.destdir):
|
if subfile.startswith(basedir):
|
||||||
return subfile.replace(self.destdir + os.path.sep, '')
|
return subfile.replace(basedir + os.path.sep, '')
|
||||||
|
|
||||||
def doCreaterepo(self):
|
def doCreaterepo(self):
|
||||||
"""Run createrepo to generate repodata in the tree."""
|
"""Run createrepo to generate repodata in the tree."""
|
||||||
|
Loading…
Reference in New Issue
Block a user