]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
support Fedora when using bootstrap 350/head
authorGreg Farnum <gfarnum@redhat.com>
Tue, 28 Oct 2014 01:08:43 +0000 (18:08 -0700)
committerGreg Farnum <gfarnum@redhat.com>
Tue, 28 Oct 2014 01:08:43 +0000 (18:08 -0700)
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
bootstrap

index a0b4edef241b128f82ead82704a925cde9b61269..c013433d6bd93eca0c9325176664583a41ff534b 100755 (executable)
--- 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