From 8499fb4e846933a260afeceb93a89d83712cbe2e Mon Sep 17 00:00:00 2001 From: "jkeating@harpoon.lab.boston.redhat.com" <> Date: Tue, 7 Nov 2006 12:26:32 -0500 Subject: [PATCH] turn on split repo creation --- __init__.py | 1 + pungi.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 277682da..4783a1a3 100755 --- a/__init__.py +++ b/__init__.py @@ -45,6 +45,7 @@ def main(): mypungi.doBuildinstall() mypungi.doPackageorder() mypungi.doSplittree() + mypungi.doCreateSplitrepo() if __name__ == '__main__': diff --git a/pungi.py b/pungi.py index db022b09..efd21518 100755 --- a/pungi.py +++ b/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():