From da5de28ccda0d6e18ecb14140ab232402e9e5ee7 Mon Sep 17 00:00:00 2001 From: "jkeating@localhost.localdomain" <> Date: Mon, 23 Oct 2006 22:16:07 -0400 Subject: [PATCH] Copy comps instead of link, as comps source may come from a different file system --- pungi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pungi.py b/pungi.py index bea44636..0fc49217 100755 --- a/pungi.py +++ b/pungi.py @@ -14,6 +14,7 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. import os +import shutil class Pungi: def __init__(self, opts): @@ -21,7 +22,7 @@ class Pungi: self.prodpath = 'Fedora' # Probably should be defined elsewhere self.basedir = os.path.join(self.opts.destdir, self.opts.arch, self.prodpath, 'base') # Probably should be defined elsewhere os.mkdir(self.basedir) - os.link(self.opts.comps, os.path.join(self.basedir, 'comps.xml')) + os.copy(self.opts.comps, os.path.join(self.basedir, 'comps.xml')) # def doCreateSplitrepo(self): # for disc in seq