[Kimchi-devel] [PATCH] Fix content of the SW update list after disable a repository.

Paulo Vital pvital at linux.vnet.ibm.com
Mon Mar 31 20:05:57 UTC 2014


Kimchi lists all RPM packages to be updated when the Host tab is
selected, but even after disable some YUM repository and refresh the
content of this tab, the previous packages from the disabled repository
are still present in list.

This patch "deletes" the YumBase object after get the list of packages
to be updated. With this, every time the Host tab is selected, a new
list will be generated.

Signed-off-by: Paulo Vital <pvital at linux.vnet.ibm.com>
---
 src/kimchi/swupdate.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/kimchi/swupdate.py b/src/kimchi/swupdate.py
index 23e3ff0..a785207 100644
--- a/src/kimchi/swupdate.py
+++ b/src/kimchi/swupdate.py
@@ -154,6 +154,7 @@ class YumUpdate(object):
             yb.doLock()
             self._pkgs = yb.doPackageLists('updates')
             yb.doUnlock()
+            del yb
         except Exception, e:
             kimchiLock.release()
             raise OperationFailed('KCHPKGUPD0003E', {'err': str(e)})
-- 
1.8.3.1




More information about the Kimchi-devel mailing list