Added git_ref argument to mijin recipe.
This commit is contained in:
parent
ad79d0c9a5
commit
82185f1a4e
@ -8,13 +8,13 @@ _REPO_URL = 'https://git.mewin.de/mewin/mijin2.git'
|
||||
def versions(env: Environment, update: bool = False):
|
||||
return [(0, 0, 0)]
|
||||
|
||||
def dependencies(env: Environment, version) -> 'dict':
|
||||
repo = env.GitBranch(repo_name = _REPO_NAME, remote_url = _REPO_URL, git_ref = 'master')
|
||||
def dependencies(env: Environment, version, options: dict = {}) -> 'dict':
|
||||
repo = env.GitBranch(repo_name = _REPO_NAME, remote_url = _REPO_URL, git_ref = options.get('git_ref', 'master'))
|
||||
checkout_root = repo['checkout_root']
|
||||
with open(os.path.join(checkout_root, 'dependencies.json'), 'r') as f:
|
||||
return env.DepsFromJson(json.load(f))
|
||||
|
||||
def cook(env: Environment, version) -> dict:
|
||||
repo = env.GitBranch(repo_name = _REPO_NAME, remote_url = _REPO_URL, git_ref = 'master')
|
||||
def cook(env: Environment, version, options: dict = {}) -> dict:
|
||||
repo = env.GitBranch(repo_name = _REPO_NAME, remote_url = _REPO_URL, git_ref = options.get('git_ref', 'master'))
|
||||
checkout_root = repo['checkout_root']
|
||||
return env.Module(os.path.join(checkout_root, 'SModule'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user