<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 12/31/2013 12:24 AM, Royce Lv wrote:<br>
</div>
<blockquote cite="mid:52C22ACA.3080501@linux.vnet.ibm.com"
type="cite">On 2013年12月31日 01:09, Aline Manera wrote:
<br>
<blockquote type="cite">From: Aline Manera
<a class="moz-txt-link-rfc2396E" href="mailto:alinefm@br.ibm.com"><alinefm@br.ibm.com></a>
<br>
<br>
ignore_list parameter was added to avoid displaying duplicated
results during
<br>
deep scan.
<br>
So isoinfo main program must be updated accordingly or it will
raise the
<br>
following error:
<br>
<br>
$ python kimchi/isoinfo.py
<a class="moz-txt-link-freetext" href="http://localhost/Fedora-Live-Desktop-x86_64-19-1.iso">http://localhost/Fedora-Live-Desktop-x86_64-19-1.iso</a>
<br>
Traceback (most recent call last):
<br>
File "kimchi/isoinfo.py", line 343, in <module>
<br>
probe_iso(None, dict(path=sys.argv[1], updater=updater))
<br>
File "kimchi/isoinfo.py", line 283, in probe_iso
<br>
ignore_list = params['ignore_list']
<br>
KeyError: 'ignore_list'
<br>
<br>
Signed-off-by: Aline Manera <a class="moz-txt-link-rfc2396E" href="mailto:alinefm@br.ibm.com"><alinefm@br.ibm.com></a>
<br>
---
<br>
src/kimchi/isoinfo.py | 2 +-
<br>
1 file changed, 1 insertion(+), 1 deletion(-)
<br>
<br>
diff --git a/src/kimchi/isoinfo.py b/src/kimchi/isoinfo.py
<br>
index f76fd90..8f4738c 100644
<br>
--- a/src/kimchi/isoinfo.py
<br>
+++ b/src/kimchi/isoinfo.py
<br>
@@ -340,5 +340,5 @@ if __name__ == '__main__':
<br>
iso_list = []
<br>
def updater(iso_info):
<br>
iso_list.append(iso_info)
<br>
- probe_iso(None, dict(path=sys.argv[1], updater=updater))
<br>
+ probe_iso(None, dict(path=sys.argv[1], updater=updater,
ignore_list=[]))
<br>
print iso_list
<br>
</blockquote>
Without affecting the upper layer,
<br>
<br>
What about change :
<br>
<br>
def probe_iso(status_helper, params):
<br>
loc = params['path'].encode("utf-8")
<br>
updater = params['updater']
<br>
ignore = False
<br>
ignore_list = params.get('ignore_list', [])
<br>
</blockquote>
<br>
<font face="DejaVu Sans Mono">Ack.<br>
<br>
</font>
</body>
</html>