On Thu, 12 Nov 2015, Doug Goldstein wrote:
> Handle unknown distros by saying "unknown" instead of an empty string
> and for Gentoo users actually mention it.
> 
> Signed-off-by: Doug Goldstein <car...@cardoe.com>

Acked-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com>

and applied


>  lib/common-functions.sh | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/lib/common-functions.sh b/lib/common-functions.sh
> index 27f6434..19434c2 100644
> --- a/lib/common-functions.sh
> +++ b/lib/common-functions.sh
> @@ -98,6 +98,8 @@ function get_tests() {
>  }
>  
>  function get_distro() {
> +    os_VENDOR="unknown"
> +
>      if [[ -x "`which lsb_release 2>/dev/null`" ]]
>      then
>          os_VENDOR=`lsb_release -i -s`
> @@ -150,6 +152,9 @@ function get_distro() {
>                       sed -r 's/\"|\(|\)//g' | awk '{print $2}'`
>          os_RELEASE=`awk '/VERSION_ID=/' /etc/os-release | sed 
> 's/VERSION_ID=//' \
>                      | sed 's/\"//g'`
> +    elif [[ -f /etc/gentoo-release ]]
> +    then
> +        os_VENDOR="Gentoo"
>      fi
>  
>      # Simply distro version string
> -- 
> 2.4.10
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to