Message ID | 1488872878-18137-2-git-send-email-geza.gemes@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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@gmail.com> Reviewed-by: Stefano Stabellini <sstabellini@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 >
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
Add $DISTRO = "CentOS" to the rpm installation targets complementing Fedora Signed-off-by: Géza Gémes <geza.gemes@gmail.com> --- lib/common-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)