Do the arch switch from i386 to i686 in a better (I hope) way

This commit is contained in:
jkeating@localhost.localdomain 2006-10-17 02:07:51 -04:00 committed by Jesse Keating
parent 9661193aa4
commit c2b14f3bad

View File

@ -25,7 +25,8 @@ class Gather(yum.YumBase):
self.cleanSqlite() # clean metadata that might be in the cache from previous runs
self.doRepoSetup()
if opts.arch == 'i386':
opts.arch = 'i686' # ensures we get the right archlist
arches = yum.rpmUtils.arch.getArchList('i686')
else:
arches = yum.rpmUtils.arch.getArchList(opts.arch)
self.doSackSetup(arches)
self.logger = yum.logging.getLogger("yum.verbose.fist")