Patchwork D874: hghave: check for debuild being installed as well

login
register
mail settings
Submitter phabricator
Date Oct. 1, 2017, 12:07 p.m.
Message ID <6a128d3b1d1c9c54c656213ca788b115@localhost.localdomain>
Download mbox | patch
Permalink /patch/24338/
State Not Applicable
Headers show

Comments

phabricator - Oct. 1, 2017, 12:07 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG200eadbcf0b0: hghave: check for debuild being installed as well (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D874?vs=2249&id=2262

REVISION DETAIL
  https://phab.mercurial-scm.org/D874

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




To: spectral, #hg-reviewers, simpkins, indygreg
Cc: mercurial-devel

Patch

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -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():