# HG changeset patch # User Augie Fackler # Date 1440475395 14400 # Node ID 2dcfb98c53147003c055086cc5c14dc2198fcb3c # Parent bad09bd22b6a3e44e8516e28340005ed9fd2dc5b hghave: add a check for debian packaging tools 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__