Mercurial > hg
changeset 26110:2dcfb98c5314
hghave: add a check for debian packaging tools
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 25 Aug 2015 00:03:15 -0400 |
parents | bad09bd22b6a |
children | dcc12365fa38 |
files | tests/hghave.py |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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__