turn on split repo creation

This commit is contained in:
jkeating@harpoon.lab.boston.redhat.com 2006-11-07 12:26:32 -05:00 committed by Jesse Keating
parent 87712433df
commit 8499fb4e84
2 changed files with 3 additions and 2 deletions

View File

@ -45,6 +45,7 @@ def main():
mypungi.doBuildinstall() mypungi.doBuildinstall()
mypungi.doPackageorder() mypungi.doPackageorder()
mypungi.doSplittree() mypungi.doSplittree()
mypungi.doCreateSplitrepo()
if __name__ == '__main__': if __name__ == '__main__':

View File

@ -57,10 +57,10 @@ class Pungi:
print line print line
def doCreateSplitrepo(self): def doCreateSplitrepo(self):
discinfo = open('%s-disc1/.discinfo' % self.topdir, 'r').read() discinfo = open('%s-disc1/.discinfo' % self.topdir, 'r').readlines()
mediaid = discinfo[0].rstrip('\n') mediaid = discinfo[0].rstrip('\n')
args = '-g %s --baseurl=media://%s --outputdir=%s-disc1 --basedir=%s-disc1 --split %s-disc?' % \ args = '-g %s --baseurl=media://%s --outputdir=%s-disc1 --basedir=%s-disc1 --split %s-disc?' % \
(self.opts.comps, mediaid, self.topdir, self.topdir, self.topdir) (os.path.join(self.topdir, 'repodata', 'comps.xml'), mediaid, self.topdir, self.topdir, self.topdir)
os.system('/usr/bin/createrepo %s' % args) os.system('/usr/bin/createrepo %s' % args)
def main(): def main():