aboutsummaryrefslogtreecommitdiff
path: root/contrib/gitian/gitian-build.py
diff options
context:
space:
mode:
authormj-xmr <63722585+mj-xmr@users.noreply.github.com>2022-04-27 06:41:15 +0200
committermj-xmr <mjxmr@protonmail.com>2022-06-06 15:52:36 +0200
commit61d0712ed508127edf5216a215f81affaec37ea8 (patch)
tree2b900f5f6743d46fd545dafae3c4f88c4845b855 /contrib/gitian/gitian-build.py
parentMerge pull request #8340 (diff)
downloadmonero-61d0712ed508127edf5216a215f81affaec37ea8.tar.xz
Gitian: refresh the stale Monero dir via --setup switch
Diffstat (limited to '')
-rwxr-xr-xcontrib/gitian/gitian-build.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/gitian/gitian-build.py b/contrib/gitian/gitian-build.py
index 859c2c645..859f460a7 100755
--- a/contrib/gitian/gitian-build.py
+++ b/contrib/gitian/gitian-build.py
@@ -31,8 +31,10 @@ def setup():
subprocess.check_call(['git', 'checkout', 'c0f77ca018cb5332bfd595e0aff0468f77542c23'])
os.makedirs('inputs', exist_ok=True)
os.chdir('inputs')
- if not os.path.isdir('monero'):
- subprocess.check_call(['git', 'clone', args.url, 'monero'])
+ if os.path.isdir('monero'):
+ # Remove the potentially stale monero dir. Otherwise you might face submodule mismatches.
+ subprocess.check_call(['rm', 'monero', '-fR'])
+ subprocess.check_call(['git', 'clone', args.url, 'monero'])
os.chdir('..')
make_image_prog = ['bin/make-base-vm', '--suite', 'bionic', '--arch', 'amd64']
if args.docker: