Put the downloaded packages in an arch specific dir
This commit is contained in:
parent
01ab4f42dd
commit
7b9ed647a4
@ -97,7 +97,7 @@ class Gather(yum.YumBase):
|
|||||||
downloads.append('%s.%s' % (pkg.name, pkg.arch))
|
downloads.append('%s.%s' % (pkg.name, pkg.arch))
|
||||||
self.logger.info("Download list: %s" % downloads)
|
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):
|
if not os.path.exists(pkgdir):
|
||||||
os.makedirs(pkgdir)
|
os.makedirs(pkgdir)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user