On Tue, 7 Mar 2017, Géza Gémes wrote: > Add $DISTRO = "CentOS" > to the rpm installation targets > complementing Fedora > > Signed-off-by: Géza Gémes <geza.ge...@gmail.com>
Reviewed-by: Stefano Stabellini <sstabell...@kernel.org> Thanks for the patch! > lib/common-functions.sh | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/lib/common-functions.sh b/lib/common-functions.sh > index 19434c2..d4476f3 100644 > --- a/lib/common-functions.sh > +++ b/lib/common-functions.sh > @@ -420,7 +420,7 @@ function install_package() { > if [[ $DISTRO = "Debian" ]] > then > $SUDO dpkg -i "$1".deb > - elif [[ $DISTRO = "Fedora" ]] > + elif [[ $DISTRO = "Fedora" || $DISTRO = "CentOS" ]] > then > $SUDO rpm -i --force "$1"-`git show --oneline | head -1 | cut -d " " > -f 1`-0.$RAISIN_ARCH.rpm > else > @@ -432,7 +432,7 @@ function uninstall_package() { > if [[ $DISTRO = "Debian" ]] > then > $SUDO dpkg -r "$1" > - elif [[ $DISTRO = "Fedora" ]] > + elif [[ $DISTRO = "Fedora" || $DISTRO = "CentOS" ]] > then > $SUDO rpm -e "$1" > else > -- > 2.7.4 >
_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel