Gitian: refresh the stale Monero dir via --setup switch
This commit is contained in:
parent
9750e1fa10
commit
61d0712ed5
@ -133,10 +133,11 @@ Common setup part:
|
|||||||
su - gitianuser
|
su - gitianuser
|
||||||
|
|
||||||
GH_USER=YOUR_GITHUB_USER_NAME
|
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.
|
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:
|
Setup for LXC:
|
||||||
|
|
||||||
|
@ -31,7 +31,9 @@ def setup():
|
|||||||
subprocess.check_call(['git', 'checkout', 'c0f77ca018cb5332bfd595e0aff0468f77542c23'])
|
subprocess.check_call(['git', 'checkout', 'c0f77ca018cb5332bfd595e0aff0468f77542c23'])
|
||||||
os.makedirs('inputs', exist_ok=True)
|
os.makedirs('inputs', exist_ok=True)
|
||||||
os.chdir('inputs')
|
os.chdir('inputs')
|
||||||
if not os.path.isdir('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'])
|
subprocess.check_call(['git', 'clone', args.url, 'monero'])
|
||||||
os.chdir('..')
|
os.chdir('..')
|
||||||
make_image_prog = ['bin/make-base-vm', '--suite', 'bionic', '--arch', 'amd64']
|
make_image_prog = ['bin/make-base-vm', '--suite', 'bionic', '--arch', 'amd64']
|
||||||
|
Loading…
Reference in New Issue
Block a user