##// END OF EJS Templates
hghave: add a check for docker support...
Augie Fackler -
r26111:dcc12365 default
parent child Browse files
Show More
@@ -414,6 +414,23 b' def has_aix():'
414 def has_osx():
414 def has_osx():
415 return sys.platform == 'darwin'
415 return sys.platform == 'darwin'
416
416
417 @check("docker", "docker support")
418 def has_docker():
419 pat = r'A self-sufficient runtime for linux containers\.'
420 if matchoutput('docker --help', pat):
421 if 'linux' not in sys.platform:
422 # TODO: in theory we should be able to test docker-based
423 # package creation on non-linux using boot2docker, but in
424 # practice that requires extra coordination to make sure
425 # $TESTTEMP is going to be visible at the same path to the
426 # boot2docker VM. If we figure out how to verify that, we
427 # can use the following instead of just saying False:
428 # return 'DOCKER_HOST' in os.environ
429 return False
430
431 return True
432 return False
433
417 @check("debhelper", "debian packaging tools")
434 @check("debhelper", "debian packaging tools")
418 def has_debhelper():
435 def has_debhelper():
419 dpkg = matchoutput('dpkg --version',
436 dpkg = matchoutput('dpkg --version',
General Comments 0
You need to be logged in to leave comments. Login now