diff -r bad09bd22b6a -r 2dcfb98c5314 tests/hghave.py --- a/tests/hghave.py Mon Aug 24 22:23:45 2015 -0400 +++ b/tests/hghave.py Tue Aug 25 00:03:15 2015 -0400 @@ -414,6 +414,16 @@ def has_osx(): return sys.platform == 'darwin' +@check("debhelper", "debian packaging tools") +def has_debhelper(): + dpkg = matchoutput('dpkg --version', + "Debian `dpkg' package management program") + dh = matchoutput('dh --help', + 'dh is a part of debhelper.') + dh_py2 = matchoutput('dh_python2 --help', + 'other supported Python versions') + return dpkg and dh and dh_py2 + @check("absimport", "absolute_import in __future__") def has_absimport(): import __future__