ostbuild: Fix --debug-shell
We want to reuse an existing source tree.
This commit is contained in:
parent
97d8a342ce
commit
351d243ccf
|
|
@ -51,8 +51,11 @@ def get_vcs_checkout(mirrordir, keytype, uri, dest, branch, overwrite=True):
|
||||||
tmp_dest = dest + '.tmp'
|
tmp_dest = dest + '.tmp'
|
||||||
if os.path.isdir(tmp_dest):
|
if os.path.isdir(tmp_dest):
|
||||||
shutil.rmtree(tmp_dest)
|
shutil.rmtree(tmp_dest)
|
||||||
if os.path.isdir(dest) and overwrite:
|
if os.path.isdir(dest):
|
||||||
shutil.rmtree(dest)
|
if overwrite:
|
||||||
|
shutil.rmtree(dest)
|
||||||
|
else:
|
||||||
|
return dest
|
||||||
if not os.path.isdir(tmp_dest):
|
if not os.path.isdir(tmp_dest):
|
||||||
run_sync(['git', 'clone', '-q',
|
run_sync(['git', 'clone', '-q',
|
||||||
'--no-checkout', module_mirror, tmp_dest])
|
'--no-checkout', module_mirror, tmp_dest])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue