[Kimchi-devel] [PATCH v2] Deep scan: listing 'unknown' bootable isos after deep scan
Daniel Barboza
danielhb at linux.vnet.ibm.com
Wed Jan 15 00:07:42 UTC 2014
From: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
When the iso distro and version can't be recognized, but the iso is
bootable, we shoud add it to the iso list after the deep scan.
Signed-off-by: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
---
src/kimchi/isoinfo.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/kimchi/isoinfo.py b/src/kimchi/isoinfo.py
index 7e6d733..417aae0 100644
--- a/src/kimchi/isoinfo.py
+++ b/src/kimchi/isoinfo.py
@@ -285,9 +285,8 @@ def probe_iso(status_helper, params):
ignore_list = params.get('ignore_list', [])
def update_result(iso, ret):
- if ret != ('unknown', 'unknown'):
- path = os.path.abspath(iso) if os.path.isfile(iso) else iso
- updater({'path': path, 'distro': ret[0], 'version': ret[1]})
+ path = os.path.abspath(iso) if os.path.isfile(iso) else iso
+ updater({'path': path, 'distro': ret[0], 'version': ret[1]})
if os.path.isdir(loc):
for root, dirs, files in os.walk(loc):
--
1.8.3.1
More information about the Kimchi-devel
mailing list