[Kimchi-devel] [PATCH 0/3 v3] Removing Yum API from Kimchi

Daniel Henrique Barboza dhbarboza82 at gmail.com
Fri Jun 5 20:17:56 UTC 2015


x3:
- skipping yumparser tests in Ubuntu
- make check-local fixes

The use of Yum API is causing a memory leak each time the
Host tab is loaded. This can be verified by seeing the use
of memory in $top.

To remove the Yum API, a new module named 'yumparser' was created
to manipulate Yum repositories directly from the filesystem and to
return the software update list by parsing $yum check-update command.

A new unit test file was created to verify the proper
behavior of the yumparser module. 


Daniel Henrique Barboza (3):
  Adding yumparser module
  Unit tests for the yumparser module
  Changing repositories and swupdate to use yumparser module

 src/kimchi/repositories.py |  65 ++++-------
 src/kimchi/swupdate.py     |  16 +--
 src/kimchi/yumparser.py    | 271 +++++++++++++++++++++++++++++++++++++++++++++
 tests/test_yumparser.py    | 111 +++++++++++++++++++
 4 files changed, 408 insertions(+), 55 deletions(-)
 create mode 100644 src/kimchi/yumparser.py
 create mode 100644 tests/test_yumparser.py

-- 
2.1.0




More information about the Kimchi-devel mailing list