[Kimchi-devel] [PATCH] [Kimchi] Improve Fedora 24 identification

Lucio Correia luciojhc at linux.vnet.ibm.com
Fri Oct 14 19:25:11 UTC 2016


Fedora 24 Server for x86_64 arch was not being identified by
Kimchi. This patch fixes it by adding more specific patterns
for Server and Workstation flavors.

Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
---
 isoinfo.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/isoinfo.py b/isoinfo.py
index 5eb68ab..e5725e2 100644
--- a/isoinfo.py
+++ b/isoinfo.py
@@ -117,9 +117,10 @@ iso_dir = [
     ('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-WS-[\D-]+-(\d+)'),
+    ('fedora', lambda m: m.group(1), 'Fedora-S-[\w-]+-(\d+)'),
     ('fedora', lambda m: m.group(1), 'Fedora[ -](\d+)'),
     ('fedora', lambda m: m.group(1), 'Fedora.*-(\d+)-'),
-    ('fedora', lambda m: m.group(1), 'Fedora-[\D-]+-(\d+)'),
     ('gentoo', lambda m: m.group(1), 'Gentoo Linux \w+ (\d+)'),
     ('powerkvm', 'live_cd', 'POWERKVM_LIVECD'),
     ('arch', lambda m: m.group(1), 'ARCH_(\d+)'),
-- 
2.7.4




More information about the Kimchi-devel mailing list