]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
Try the ceph.com mirror first. If that fails, retry with the github url and the https...
authorJoe Handzik <joseph.t.handzik@hp.com>
Thu, 9 Apr 2015 22:18:28 +0000 (17:18 -0500)
committerJoe Handzik <joseph.t.handzik@hp.com>
Thu, 9 Apr 2015 22:18:28 +0000 (17:18 -0500)
vendor.py

index f56f1c3df85e2d414bd46786ac608d323d081b45..ef3c52c86cd183b230da2a5c5448ad799bec98e5 100644 (file)
--- a/vendor.py
+++ b/vendor.py
@@ -66,7 +66,10 @@ def vendor_library(name, version, cmd=None):
             run(['rm', '-rf', vendor_dest])
 
     if not path.exists(vendor_dest):
-        run(['git', 'clone', 'https://github.com/ceph/%s.git' % name])
+        rc = run(['git', 'clone', 'git://ceph.com/%s' % name])
+        if (rc):
+            print "%s: git clone failed using ceph.com url with rc %s, trying github.com" % (path.basename(__file__), rc)
+            run(['git', 'clone', 'https://github.com/ceph/%s.git' % name])
         os.chdir(vendor_src)
         run(['git', 'checkout', version])
         if cmd: