<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
'make check-local' is failing as below:<br>
<div style="font: normal normal 1em/1.2em monospace; margin:0;
padding:0; background:none; vertical-align:top;"><br>
Checking for invalid i18n string...<br>
Checking for invalid i18n string successfully<br>
find . -path './.git' -prune -type f -o \<br>
-name '*.py' -o -name '*.py.in' | xargs /usr/bin/pyflakes
| \<br>
grep -w -v "\./src/kimchi/websocket\.py" | \<br>
while read LINE; do echo "$LINE"; false; done<br>
./src/kimchi/yumparser.py:22: 'join' imported but unused<br>
./src/kimchi/yumparser.py:22: 'getmtime' imported but unused<br>
Makefile:909: recipe for target 'check-local' failed<br>
make: *** [check-local] Error 1<br>
<br>
<font face="sans-serif">And 'make check' is failing on Ubuntu:<br>
<br>
</font>
<div class="codewrap">
<div style="font: normal normal 1em/1.2em monospace; margin:0;
padding:0; background:none; vertical-align:top;">======================================================================<br>
ERROR: setUpModule (test_yumparser)<br>
[05/Jun/2015:14:44:45] ENGINE Waiting for child threads to
terminate...<br>
----------------------------------------------------------------------<br>
Traceback (most recent call last):<br>
File "test_yumparser.py", line 65, in setUpModule<br>
TEMP_REPO_FILE = _create_fake_repos_file()<br>
File "test_yumparser.py", line 50, in
_create_fake_repos_file<br>
dir='/etc/yum.repos.d')<br>
File "/usr/lib/python2.7/tempfile.py", line 308, in mkstemp<br>
return _mkstemp_inner(dir, prefix, suffix, flags)<br>
File "/usr/lib/python2.7/tempfile.py", line 239, in
_mkstemp_inner<br>
fd = _os.open(file, flags, 0600)<br>
OSError: [Errno 2] No such file or directory:
'/etc/yum.repos.d/tmp_Ml11K.repo'</div>
<br>
</div>
</div>
<div class="moz-cite-prefix">On 04/06/2015 16:49, Daniel Henrique
Barboza wrote:<br>
</div>
<blockquote
cite="mid:1433447383-28228-1-git-send-email-dhbarboza82@gmail.com"
type="cite">
<pre wrap="">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 | 109 ++++++++++++++++++
4 files changed, 406 insertions(+), 55 deletions(-)
create mode 100644 src/kimchi/yumparser.py
create mode 100644 tests/test_yumparser.py
</pre>
</blockquote>
<br>
</body>
</html>