Skip to content
Snippets Groups Projects
Commit 2dcfb98c authored by Augie Fackler's avatar Augie Fackler
Browse files

hghave: add a check for debian packaging tools

parent bad09bd2
No related branches found
No related tags found
No related merge requests found
......@@ -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__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment