Skip to content

Commit

Permalink
Merge pull request #8296
Browse files Browse the repository at this point in the history
61d0712 Gitian: refresh the stale Monero dir via --setup switch (mj-xmr)
  • Loading branch information
luigi1111 committed Jul 3, 2022
2 parents 30a9183 + 61d0712 commit 622f251
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion contrib/gitian/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,11 @@ Common setup part:
su - gitianuser

GH_USER=YOUR_GITHUB_USER_NAME
VERSION=v0.17.2.0
VERSION=v0.17.3.2
```

Where `GH_USER` is your GitHub user name and `VERSION` is the version tag you want to build.
The `gitian-build.py`'s `--setup` switch will also refresh the environment of any stale files and submodules.

Setup for LXC:

Expand Down
6 changes: 4 additions & 2 deletions contrib/gitian/gitian-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 622f251

Please sign in to comment.