changeset 34400:200eadbcf0b0

hghave: check for debuild being installed as well Differential Revision: https://phab.mercurial-scm.org/D874
author Kyle Lippincott <spectral@google.com>
date Sun, 01 Oct 2017 04:10:01 -0700
parents e51c8ffa1ffa
children 3d936da4f97b
files tests/hghave.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hghave.py	Sun Oct 01 03:24:20 2017 -0700
+++ b/tests/hghave.py	Sun Oct 01 04:10:01 2017 -0700
@@ -581,7 +581,11 @@
                      br'dh is a part of debhelper.', ignorestatus=True)
     dh_py2 = matchoutput('dh_python2 --help',
                          br'other supported Python versions')
-    return dpkg and dh and dh_py2
+    # debuild comes from the 'devscripts' package, though you might want
+    # the 'build-debs' package instead, which has a dependency on devscripts.
+    debuild = matchoutput('debuild --help',
+                          br'to run debian/rules with given parameter')
+    return dpkg and dh and dh_py2 and debuild
 
 @check("demandimport", "demandimport enabled")
 def has_demandimport():