[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] Allow installation on CentOS
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.gemes@xxxxxxxxx> Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> 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@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |