repos: introduce a new repo conf parameter "type"
This will be used to carry the type of repo we are talking about. At the moment it defaults to "git". Signed-off-by: Henning Schild <henning.schild@siemens.com>
This commit is contained in:
committed by
Daniel Wagner
parent
9da82dba13
commit
0c7db599fd
@@ -187,6 +187,7 @@ class Config:
|
||||
layers_dict))
|
||||
url = repo_config_dict[repo].get('url', None)
|
||||
name = repo_config_dict[repo].get('name', repo)
|
||||
typ = repo_config_dict[repo].get('type', 'git')
|
||||
refspec = repo_config_dict[repo].get('refspec', None)
|
||||
path = repo_config_dict[repo].get('path', None)
|
||||
dis_ops = False
|
||||
@@ -204,8 +205,9 @@ class Config:
|
||||
else:
|
||||
path = path or os.path.join(self.kas_work_dir, name)
|
||||
|
||||
rep = Repo.factory(url=url, path=path, refspec=refspec,
|
||||
layers=layers, disable_operations=dis_ops)
|
||||
rep = Repo.factory(url=url, path=path, typ=typ,
|
||||
refspec=refspec, layers=layers,
|
||||
disable_operations=dis_ops)
|
||||
repo_dict[repo] = rep
|
||||
return repo_dict
|
||||
|
||||
|
Reference in New Issue
Block a user