From eeadd4918f7ccca28c31e3e7a36bafe225dbf816 Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Mon, 27 Oct 2014 18:08:43 -0700 Subject: [PATCH] support Fedora when using bootstrap Signed-off-by: Greg Farnum --- bootstrap | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/bootstrap b/bootstrap index a0b4edef24..c013433d6b 100755 --- a/bootstrap +++ b/bootstrap @@ -17,6 +17,19 @@ Linux) exit 1 fi ;; + Fedora) + for package in python-pip python-virtualenv libevent-devel libvirt-python community-mysql-devel; do + if [ "$(rpm -q $package)" == "package $package is not installed" ]; then + missing="${missing:+$missing }$package" + fi + done + if [ -n "$missing" ]; then + echo "$0: missing required packages, please install them:" 1>&2 + echo "sudo yum install $missing" + exit 1 + fi + ;; + *) echo "This script does not support your Linux distribution yet. Patches encouraged!" exit 1 -- 2.39.5