Index: ensure_dependencies.py |
=================================================================== |
--- a/ensure_dependencies.py |
+++ b/ensure_dependencies.py |
@@ -182,17 +182,21 @@ def ensure_repo(parentrepo, target, root |
parenttype = get_repo_type(parentrepo) |
type = None |
for key in roots: |
if key == parenttype or (key in repo_types and type is None): |
type = key |
if type is None: |
raise Exception("No valid source found to create %s" % target) |
- url = urlparse.urljoin(roots[type], sourcename) |
+ if os.path.exists(roots[type]): |
+ url = os.path.join(roots[type], sourcename) |
+ else: |
+ url = urlparse.urljoin(roots[type], sourcename) |
+ |
logging.info("Cloning repository %s into %s" % (url, target)) |
repo_types[type].clone(url, target) |
for repo in repo_types.itervalues(): |
if repo.istype(parentrepo): |
repo.ignore(target, parentrepo) |
def update_repo(target, revisions): |