You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by up...@apache.org on 2015/12/07 22:21:44 UTC

svn commit: r1718471 - /lucene/dev/branches/lucene_solr_5_4/dev-tools/scripts/smokeTestRelease.py

Author: upayavira
Date: Mon Dec  7 21:21:44 2015
New Revision: 1718471

URL: http://svn.apache.org/viewvc?rev=1718471&view=rev
Log:
Fix smoke test to handle HTTPS dist URLs

Modified:
    lucene/dev/branches/lucene_solr_5_4/dev-tools/scripts/smokeTestRelease.py

Modified: lucene/dev/branches/lucene_solr_5_4/dev-tools/scripts/smokeTestRelease.py
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_5_4/dev-tools/scripts/smokeTestRelease.py?rev=1718471&r1=1718470&r2=1718471&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_5_4/dev-tools/scripts/smokeTestRelease.py (original)
+++ lucene/dev/branches/lucene_solr_5_4/dev-tools/scripts/smokeTestRelease.py Mon Dec  7 21:21:44 2015
@@ -84,7 +84,12 @@ def getHREFs(urlString):
   # Deref any redirects
   while True:
     url = urllib.parse.urlparse(urlString)
-    h = http.client.HTTPConnection(url.netloc)
+    if url.scheme == "http":
+      h = http.client.HTTPConnection(url.netloc)
+    elif url.scheme == "https":
+      h = http.client.HTTPSConnection(url.netloc)
+    else:
+      raise RuntimeError("Unknown protocol: %s" % url.scheme)
     h.request('GET', url.path)
     r = h.getresponse()
     newLoc = r.getheader('location')