# HG changeset patch # User Kyle Lippincott # Date 2017-10-01 11:10:01 # Node ID 200eadbcf0b03205059c2528757edcd737ec4255 # Parent e51c8ffa1ffa3524e01cd1d1f60c79fc5ef02e43 hghave: check for debuild being installed as well Differential Revision: https://phab.mercurial-scm.org/D874 diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -581,7 +581,11 @@ def has_debhelper(): 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():