hghave: add a check for unzip(1) that understands symlinks
authorAugie Fackler <augie@google.com>
Thu, 25 Aug 2016 01:25:52 -0400
changeset 29843 00ca4f966ca6
parent 29842 d5497eb1d768
child 29844 c4d03b6d9576
hghave: add a check for unzip(1) that understands symlinks unzip(1) from the FreeBSD base system does not understand symlinks, so test-archive-symlinks is busted.
tests/hghave.py
--- a/tests/hghave.py	Thu Aug 25 01:00:54 2016 -0400
+++ b/tests/hghave.py	Thu Aug 25 01:25:52 2016 -0400
@@ -573,3 +573,7 @@
         return True
     except ImportError:
         return False
+
+@check("unziplinks", "unzip(1) understands and extracts symlinks")
+def unzip_understands_symlinks():
+    return matchoutput('unzip --help', br'Info-ZIP')