|
@@ -64,13 +64,12 @@ class MakeSetupPlugin(LayerPlugin):
|
|
|
return
|
|
|
repo_path = self._get_repo_path(l_path)
|
|
|
if repo_path not in repos.keys():
|
|
|
- repos[repo_path] = {'path':os.path.basename(repo_path),'layers':{},'git-remote':{'rev':l_rev, 'branch':l_branch, 'remotes':self._get_remotes(repo_path), 'describe':self._get_describe(repo_path)}}
|
|
|
+ repos[repo_path] = {'path':os.path.basename(repo_path),'git-remote':{'rev':l_rev, 'branch':l_branch, 'remotes':self._get_remotes(repo_path), 'describe':self._get_describe(repo_path)}}
|
|
|
if repo_path == destdir_repo:
|
|
|
repos[repo_path]['contains_this_file'] = True
|
|
|
if not repos[repo_path]['git-remote']['remotes'] and not repos[repo_path]['contains_this_file']:
|
|
|
logger.error("Layer repository in {path} does not have any remotes configured. Please add at least one with 'git remote add'.".format(path=repo_path))
|
|
|
return
|
|
|
- repos[repo_path]['layers'][l_name] = {'subpath':l_path.replace(repo_path,'')[1:]}
|
|
|
|
|
|
top_path = os.path.commonpath([os.path.dirname(r) for r in repos.keys()])
|
|
|
|