Skip to content
Snippets Groups Projects
Commit 278866f1 authored by Paweł Szostek's avatar Paweł Szostek
Browse files

Change default path for modules fetched from SVN repositories

parent 593427ac
No related merge requests found
No preview for this file type
......@@ -61,9 +61,9 @@ class ModulePool(list):
os.chdir(module.fetchto)
url, rev = self.__parse_repo_url(module.url)
basename = path.svn_basename(url)
#basename = path.svn_basename(url)
cmd = "svn checkout {0} " + basename
cmd = "svn checkout {0} " + module.basename
if rev:
cmd = cmd.format(url + '@' + rev)
else:
......@@ -78,7 +78,7 @@ class ModulePool(list):
module.isfetched = True
module.revision = rev
module.path = os.path.join(module.fetchto, basename)
module.path = os.path.join(module.fetchto, module.basename)
return rval
def __fetch_from_git(self, module):
......
......@@ -54,7 +54,7 @@ def svn_basename(url):
words = url.split('//')
try:
words = words[1].split('/')
return words[1]
return '/'.join(words[1:])
except:
return None
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment