[Libguestfs] [PATCH 2/2] osinfo: add altlinux and mageia distributions

Richard W.M. Jones rjones at redhat.com
Tue Aug 25 18:40:03 UTC 2015


On Tue, Aug 25, 2015 at 05:40:52PM +0200, Pino Toscano wrote:
> ---
>  src/osinfo.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/src/osinfo.c b/src/osinfo.c
> index 0454b45..f7e1548 100644
> --- a/src/osinfo.c
> +++ b/src/osinfo.c
> @@ -492,7 +492,9 @@ parse_distro (guestfs_h *g, xmlNodePtr node, struct osinfo *osinfo)
>  
>    content = (char *) xmlNodeGetContent (node);
>    if (content) {
> -    if (STREQ (content, "centos"))
> +    if (STREQ (content, "altlinux"))
> +      osinfo->distro = OS_DISTRO_ALTLINUX;
> +    else if (STREQ (content, "centos"))
>        osinfo->distro = OS_DISTRO_CENTOS;
>      else if (STREQ (content, "debian"))
>        osinfo->distro = OS_DISTRO_DEBIAN;
> @@ -500,6 +502,8 @@ parse_distro (guestfs_h *g, xmlNodePtr node, struct osinfo *osinfo)
>        osinfo->distro = OS_DISTRO_FEDORA;
>      else if (STREQ (content, "freebsd"))
>        osinfo->distro = OS_DISTRO_FREEBSD;
> +    else if (STREQ (content, "mageia"))
> +      osinfo->distro = OS_DISTRO_MAGEIA;
>      else if (STREQ (content, "mandriva"))
>        osinfo->distro = OS_DISTRO_MANDRIVA;
>      else if (STREQ (content, "netbsd"))
> -- 
> 2.1.0

ACK series.

Thanks,

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW




More information about the Libguestfs mailing list