]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Added openSUSE and SLES conditions in bootstrap. 483/head
authorksharma <ksharma@suse.com>
Tue, 5 May 2015 14:35:38 +0000 (16:35 +0200)
committerksharma <ksharma@suse.com>
Tue, 5 May 2015 14:35:38 +0000 (16:35 +0200)
Signed-off-by: Kapil Sharma ksharma@suse.com
bootstrap

index 1f7f56cde3894e7adfc0f23e61bb5b40ed2bd937..c4cfcd0a6fe5acbb4bd0989e68c8df2c7c1d450e 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -40,7 +40,18 @@ Linux)
             exit 1
        fi
        ;;
-
+    "openSUSE project"|"SUSE LINUX")
+        for package in python-pip python-virtualenv libevent-devel libvirt-python libmysqlclient-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 zypper install $missing"
+            exit 1
+        fi
+        ;;
     *)
         echo "This script does not support your Linux distribution yet. Patches encouraged!"
         exit 1