mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 03:13:28 +01:00
Merge pull request #6290
019c1dc0
gitian-build.py: Fixing check for docker command. (Jonathan Cross)
This commit is contained in:
commit
e1ee168e39
@ -36,8 +36,11 @@ def setup():
|
|||||||
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']
|
||||||
if args.docker:
|
if args.docker:
|
||||||
if not subprocess.call(['docker', '--help'], shell=False, stdout=subprocess.DEVNULL):
|
try:
|
||||||
print("Please install docker first manually")
|
subprocess.check_output(['docker', '--help'])
|
||||||
|
except:
|
||||||
|
print("ERROR: Could not find 'docker' command. Ensure this is in your PATH.")
|
||||||
|
sys.exit(1)
|
||||||
make_image_prog += ['--docker']
|
make_image_prog += ['--docker']
|
||||||
elif not args.kvm:
|
elif not args.kvm:
|
||||||
make_image_prog += ['--lxc']
|
make_image_prog += ['--lxc']
|
||||||
|
Loading…
Reference in New Issue
Block a user