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

Rodrigo Trujillo rodrigo.trujillo at linux.vnet.ibm.com
Thu Oct 30 16:44:42 UTC 2014


From: Paulo Vital <pvital at linux.vnet.ibm.com>

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>
Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo 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 85cdfd6..40af8f3 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.9.3




More information about the Kimchi-devel mailing list