- Call createrepo ourselves for the tree, not buildinstall's job
This commit is contained in:
parent
4e8d70bf9f
commit
9986ab582a
@ -1,3 +1,6 @@
|
|||||||
|
* Wed Mar 07 2007 Jesse Keating <jkeating@redhat.com>
|
||||||
|
- Call createrepo ourselves for the tree, not buildinstall's job
|
||||||
|
|
||||||
* Tue Mar 06 2007 Jesse Keating <jkeating@redhat.com>
|
* Tue Mar 06 2007 Jesse Keating <jkeating@redhat.com>
|
||||||
- Convert from commands to subprocess for things we call out
|
- Convert from commands to subprocess for things we call out
|
||||||
|
|
||||||
|
@ -67,10 +67,19 @@ class Pungi:
|
|||||||
"""Run anaconda-runtime's buildinstall on the tree."""
|
"""Run anaconda-runtime's buildinstall on the tree."""
|
||||||
|
|
||||||
|
|
||||||
# buildinstall looks for a comps file in base/ for now, copy it into place
|
# create repodata for the tree
|
||||||
os.makedirs(os.path.join(self.topdir, self.config.get('default', 'product_path'), 'base'))
|
createrepo = ['/usr/bin/createrepo']
|
||||||
shutil.copy(self.config.get('default', 'comps'), os.path.join(self.topdir,
|
createrepo.append('--database')
|
||||||
self.config.get('default', 'product_path'), 'base', 'comps.xml'))
|
|
||||||
|
createrepo.append('--groupfile')
|
||||||
|
createrepo.append(self.config.get('default', 'comps'))
|
||||||
|
|
||||||
|
createrepo.append(self.topdir)
|
||||||
|
|
||||||
|
# run the command
|
||||||
|
subprocess.check_call(createrepo, cwd=self.topdir)
|
||||||
|
# log something here
|
||||||
|
|
||||||
|
|
||||||
# setup the buildinstall call
|
# setup the buildinstall call
|
||||||
buildinstall = ['/usr/lib/anaconda-runtime/buildinstall']
|
buildinstall = ['/usr/lib/anaconda-runtime/buildinstall']
|
||||||
|
Loading…
Reference in New Issue
Block a user