Put the downloaded packages in an arch specific dir

This commit is contained in:
jkeating@localhost.localdomain 2006-10-16 00:08:17 -04:00 committed by Jesse Keating
parent 01ab4f42dd
commit 7b9ed647a4

View File

@ -97,7 +97,7 @@ class Gather(yum.YumBase):
downloads.append('%s.%s' % (pkg.name, pkg.arch))
self.logger.info("Download list: %s" % downloads)
pkgdir = os.path.join(self.opts.destdir, 'tree') # Package location within destdir, name subject to change/config
pkgdir = os.path.join(self.opts.destdir, self.opts.arch, 'tree') # Package location within destdir, name subject to change/config
if not os.path.exists(pkgdir):
os.makedirs(pkgdir)