From: Greg Farnum Date: Tue, 28 Oct 2014 01:08:43 +0000 (-0700) Subject: support Fedora when using bootstrap X-Git-Tag: 1.1.0~1098^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=eeadd4918f7ccca28c31e3e7a36bafe225dbf816;p=teuthology.git support Fedora when using bootstrap Signed-off-by: Greg Farnum --- diff --git a/bootstrap b/bootstrap index a0b4edef2..c013433d6 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