Copy comps instead of link, as comps source may come from a different file system

This commit is contained in:
jkeating@localhost.localdomain 2006-10-23 22:16:07 -04:00 committed by Jesse Keating
parent fb8e6e7aa1
commit da5de28ccd
1 changed files with 2 additions and 1 deletions

View File

@ -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