tests/hghave
changeset 8809 6fce36336e42
parent 8213 ac9c4049fd29
child 9244 3f52a70959ce
--- a/tests/hghave	Sun Jun 14 12:18:46 2009 -0700
+++ b/tests/hghave	Sun Jun 14 13:32:19 2009 -0700
@@ -146,6 +146,9 @@
 def has_tla():
     return matchoutput('tla --version 2>&1', r'The GNU Arch Revision')
 
+def has_gpg():
+    return matchoutput('gpg --version 2>&1', r'GnuPG')
+
 def has_unix_permissions():
     d = tempfile.mkdtemp(prefix=tempprefix, dir=".")
     try:
@@ -183,6 +186,7 @@
     "execbit": (has_executablebit, "executable bit"),
     "fifo": (has_fifo, "named pipes"),
     "git": (has_git, "git command line client"),
+    "gpg": (has_gpg, "gpg client"),
     "hotshot": (has_hotshot, "python hotshot module"),
     "icasefs": (has_icasefs, "case insensitive file system"),
     "inotify": (has_inotify, "inotify extension support"),