tests/hghave.py
changeset 26110 2dcfb98c5314
parent 26109 bad09bd22b6a
child 26111 dcc12365fa38
--- 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__