Avoid conflicting with yum internals
This commit is contained in:
parent
5d6fc5c543
commit
af347fd6a3
@ -46,7 +46,7 @@ import yum
|
|||||||
class PackageOrderer(yum.YumBase):
|
class PackageOrderer(yum.YumBase):
|
||||||
def __init__(self, arch=None):
|
def __init__(self, arch=None):
|
||||||
yum.YumBase.__init__(self)
|
yum.YumBase.__init__(self)
|
||||||
self.arch = arch
|
self._arch = arch
|
||||||
|
|
||||||
def _transactionDataFactory(self):
|
def _transactionDataFactory(self):
|
||||||
return yum.transactioninfo.SortableTransactionData()
|
return yum.transactioninfo.SortableTransactionData()
|
||||||
@ -71,7 +71,7 @@ class PackageOrderer(yum.YumBase):
|
|||||||
self.repos.setCache(0)
|
self.repos.setCache(0)
|
||||||
self.doRepoSetup()
|
self.doRepoSetup()
|
||||||
|
|
||||||
self.doSackSetup(rpmUtils.arch.getArchList(self.arch))
|
self.doSackSetup(rpmUtils.arch.getArchList(self._arch))
|
||||||
self.doTsSetup()
|
self.doTsSetup()
|
||||||
self.doGroupSetup()
|
self.doGroupSetup()
|
||||||
self.repos.populateSack('enabled', 'filelists')
|
self.repos.populateSack('enabled', 'filelists')
|
||||||
|
Loading…
Reference in New Issue
Block a user