aboutsummaryrefslogtreecommitdiff
path: root/contrib/gitian/gitian-build.py
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-07-03 17:26:04 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-07-03 17:26:04 -0500
commit622f251fa1f15930576cfd85022a6c9bbd6393ee (patch)
tree2bda1c70a137cc1c9efd7d022c7b2fc99504e6aa /contrib/gitian/gitian-build.py
parentMerge pull request #7774 (diff)
parentGitian: refresh the stale Monero dir via --setup switch (diff)
downloadmonero-622f251fa1f15930576cfd85022a6c9bbd6393ee.tar.xz
Merge pull request #8296
61d0712 Gitian: refresh the stale Monero dir via --setup switch (mj-xmr)
Diffstat (limited to 'contrib/gitian/gitian-build.py')
-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: