turn on split repo creation
This commit is contained in:
parent
87712433df
commit
8499fb4e84
@ -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__':
|
||||||
|
4
pungi.py
4
pungi.py
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user