[Kimchi-devel] [PATCH] Add support to RHEL 7
Mark Wu
wudxw at linux.vnet.ibm.com
Wed Jan 15 02:44:39 UTC 2014
On 01/15/2014 12:25 AM, abotega at linux.vnet.ibm.com wrote:
> From: Adriano Botega <abotega at linux.vnet.ibm.com>
>
> RHEL 7 is the next Red Hat Enterprise distro version and because of a difference in the distro name in Volume Descriptor Table on it's ISO file, Kimchi is not recognizing as a RHEL distro.
> This patch adds the correct regex to add support to RHEL 7
>
> Signed-off-by: Adriano Botega <abotega at linux.vnet.ibm.com>
> ---
> src/kimchi/isoinfo.py | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/kimchi/isoinfo.py b/src/kimchi/isoinfo.py
> index 7e6d733..06bc6d8 100644
> --- a/src/kimchi/isoinfo.py
> +++ b/src/kimchi/isoinfo.py
> @@ -111,6 +111,7 @@ iso_dir = [
> '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(1), 'RHEL[-](\d+\.\d+)'),
It's not necessary to add a line for it. We could just add the hyphen to
the matching characters set:
('rhel', lambda m: m.group(1), 'RHEL[_/-](\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+)'),
More information about the Kimchi-devel
mailing list