Преглед на файлове

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 години
родител
ревизия
9d8f914fe8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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):