ostbuild: Fix previous commit (this should have been amended)
This commit is contained in:
parent
f4b6d88254
commit
6aaa2089f0
|
|
@ -145,7 +145,7 @@ def fetch(mirrordir, keytype, uri, branch, keep_going=False):
|
||||||
mirror = buildutil.get_mirrordir(mirrordir, keytype, uri)
|
mirror = buildutil.get_mirrordir(mirrordir, keytype, uri)
|
||||||
last_fetch_path = get_lastfetch_path(mirrordir, keytype, uri, branch)
|
last_fetch_path = get_lastfetch_path(mirrordir, keytype, uri, branch)
|
||||||
run_sync(['git', 'fetch'], cwd=mirror, log_initiation=False,
|
run_sync(['git', 'fetch'], cwd=mirror, log_initiation=False,
|
||||||
none_on_error=keep_going)
|
fatal_on_error=not keep_going)
|
||||||
current_vcs_version = run_sync_get_output(['git', 'rev-parse', branch], cwd=mirror)
|
current_vcs_version = run_sync_get_output(['git', 'rev-parse', branch], cwd=mirror)
|
||||||
if current_vcs_version is not None:
|
if current_vcs_version is not None:
|
||||||
current_vcs_version = current_vcs_version.strip()
|
current_vcs_version = current_vcs_version.strip()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue