From: "Géza Gémes" <geza.gemes@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: sstabellini@kernel.org, george.dunlap@citrix.com,
"Géza Gémes" <geza.gemes@gmail.com>
Subject: [PATCH] Allow installation on CentOS
Date: Tue, 7 Mar 2017 08:47:58 +0100 [thread overview]
Message-ID: <1488872878-18137-2-git-send-email-geza.gemes@gmail.com> (raw)
In-Reply-To: <1488872878-18137-1-git-send-email-geza.gemes@gmail.com>
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(-)
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
next prev parent reply other threads:[~2017-03-07 7:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-07 7:47 [PATCH] [RAISIN] Add installation support for CentOS Géza Gémes
2017-03-07 7:47 ` Géza Gémes [this message]
2017-03-07 18:17 ` [PATCH] Allow installation on CentOS Stefano Stabellini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488872878-18137-2-git-send-email-geza.gemes@gmail.com \
--to=geza.gemes@gmail.com \
--cc=george.dunlap@citrix.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).