Browse Source

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 14 năm trước cách đây
mục cha
commit
9d8f914fe8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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):