turn on split repo creation
This commit is contained in:
parent
87712433df
commit
8499fb4e84
2 changed files with 3 additions and 2 deletions
|
|
@ -45,6 +45,7 @@ def main():
|
|||
mypungi.doBuildinstall()
|
||||
mypungi.doPackageorder()
|
||||
mypungi.doSplittree()
|
||||
mypungi.doCreateSplitrepo()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
4
pungi.py
4
pungi.py
|
|
@ -57,10 +57,10 @@ class Pungi:
|
|||
print line
|
||||
|
||||
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')
|
||||
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)
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue