Explorar o código

Remove extra '/' in RemoteSpec

urljoin appends a '/' if only the domain is in the url path.  This
change strips that off before creating a RemoteSpec
Conley Owens %!s(int64=14) %!d(string=hai) anos
pai
achega
9d8f914fe8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      manifest_xml.py

+ 1 - 1
manifest_xml.py

@@ -59,7 +59,7 @@ class _XmlRemote(object):
     return re.sub(r'^gopher://', '', url)
 
   def ToRemoteSpec(self, projectName):
-    url = self.resolvedFetchUrl + '/' + projectName
+    url = self.resolvedFetchUrl.rstrip('/') + '/' + projectName
     return RemoteSpec(self.name, url, self.reviewUrl)
 
 class XmlManifest(object):