Use arch as part of the topdir

This commit is contained in:
jkeating@localhost.localdomain 2006-10-23 21:46:08 -04:00 committed by Jesse Keating
parent abd0a5524d
commit 2e4db74149

View File

@ -19,7 +19,7 @@ class Pungi:
def __init__(self, opts): def __init__(self, opts):
self.opts = opts self.opts = opts
self.prodpath = 'Fedora' # Probably should be defined elsewhere self.prodpath = 'Fedora' # Probably should be defined elsewhere
self.basedir = os.path.join(self.opts.topdir, self.prodpath, 'base') # Probably should be defined elsewhere self.basedir = os.path.join(self.opts.topdir, self.opts.arch, self.prodpath, 'base') # Probably should be defined elsewhere
os.mkdir(self.basedir) os.mkdir(self.basedir)
os.link(self.opts.comps, os.path.join(self.basedir, 'comps.xml')) os.link(self.opts.comps, os.path.join(self.basedir, 'comps.xml'))