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

Aline Manera alinefm at linux.vnet.ibm.com
Wed Jun 10 14:36:28 UTC 2015


Reviewed-by: Aline Manera <alinefm at linux.vnet.ibm.com>

On 09/06/2015 18:48, Daniel Henrique Barboza wrote:
> v4:
> - simplified the code of YumRepoObj class
>
> 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    | 248 +++++++++++++++++++++++++++++++++++++++++++++
>   tests/test_yumparser.py    | 111 ++++++++++++++++++++
>   4 files changed, 385 insertions(+), 55 deletions(-)
>   create mode 100644 src/kimchi/yumparser.py
>   create mode 100644 tests/test_yumparser.py
>




More information about the Kimchi-devel mailing list