comparison tests/hghave.py @ 29028:67fd250b7c21 stable

hghave: remove unused check for bdist_mpkg
author Kevin Bullock <kbullock+mercurial@ringworld.org>
date Fri, 29 Apr 2016 14:14:00 -0500
parents 80f15aa32edd
children c8fbfb9163ce
comparison
equal deleted inserted replaced
29027:db5084d27df5 29028:67fd250b7c21
453 return sys.platform.startswith("aix") 453 return sys.platform.startswith("aix")
454 454
455 @check("osx", "OS X") 455 @check("osx", "OS X")
456 def has_osx(): 456 def has_osx():
457 return sys.platform == 'darwin' 457 return sys.platform == 'darwin'
458
459 @check("bdistmpkg", "bdist_mpkg Python Package")
460 def has_bdistmpkg():
461 try:
462 import bdist_mpkg.script_bdist_mpkg
463 return True
464 except ImportError:
465 return False
466 458
467 @check("osxpackaging", "OS X packaging tools") 459 @check("osxpackaging", "OS X packaging tools")
468 def has_osxpackaging(): 460 def has_osxpackaging():
469 try: 461 try:
470 return (matchoutput('pkgbuild', 'Usage: pkgbuild ', ignorestatus=1) 462 return (matchoutput('pkgbuild', 'Usage: pkgbuild ', ignorestatus=1)