[Kimchi-devel] [PATCH] Add support to recognize RHEL-LE distro and version

Jose Ricardo Ziviani joserz at linux.vnet.ibm.com
Thu Mar 19 20:33:53 UTC 2015


 - When creating a new template, RHEL little-endian was not
   being reconized. This commit fixes the regex to support
   such distro.
---
 src/kimchi/isoinfo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kimchi/isoinfo.py b/src/kimchi/isoinfo.py
index b5a1769..818ffe3 100644
--- a/src/kimchi/isoinfo.py
+++ b/src/kimchi/isoinfo.py
@@ -110,7 +110,7 @@ iso_dir = [
     ('opensuse', '12.2',
         'openSUSE-DVD-i586-Build0167|openSUSE-DVD-x86_640167'),
     ('rhel', '4.8', 'RHEL/4-U8'),
-    ('rhel', lambda m: m.group(1), 'RHEL[_/-](\d+\.\d+)'),
+    ('rhel', lambda m: m.group(2), 'RHEL(-LE)?[_/-](\d+\.\d+)'),
     ('debian', lambda m: m.group(1), 'Debian (\d+\.\d+)'),
     ('ubuntu', lambda m: m.group(2), '[Uu]buntu(-Server)? (\d+\.\d+)'),
     ('fedora', lambda m: m.group(1), 'Fedora[ -](\d+)'),
-- 
1.9.1




More information about the Kimchi-devel mailing list