yum: adds an auto_close attribute to the rpmdb object

This patch to PK should enable it to use the feature (if yum is patched.
If yum is not patched then this attribute set should do nothing at all)
This commit is contained in:
Seth Vidal 2009-02-18 12:14:48 +00:00 committed by Richard Hughes
parent bbea3ddf22
commit 53c0512067

View File

@ -2322,6 +2322,7 @@ class PackageKitYumBackend(PackageKitBaseBackend, PackagekitPackage):
# set bandwidth throttle to 90%
self.yumbase.conf.throttle = "90%"
self.yumbase.rpmdb.auto_close = True
self.dnlCallback = DownloadCallback(self, showNames=True)
self.yumbase.repos.setProgressBar(self.dnlCallback)