[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 105/205: mkhelp: disable compression if the perl gz
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 105/205: mkhelp: disable compression if the perl gzip module is unavailable |
Date: |
Thu, 20 Apr 2017 16:20:45 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to annotated tag gnurl-7.54.0
in repository gnurl.
commit ae22034d0d711881b0cbf1e8be3090cad486bb97
Author: Dan Fandrich <address@hidden>
AuthorDate: Thu Mar 23 21:11:41 2017 +0100
mkhelp: disable compression if the perl gzip module is unavailable
This is nowadays included with the base perl distribution, but wasn't
prior to about perl 5.14
---
src/mkhelp.pl | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/src/mkhelp.pl b/src/mkhelp.pl
index 8b7f72157..4b540744c 100644
--- a/src/mkhelp.pl
+++ b/src/mkhelp.pl
@@ -113,8 +113,19 @@ print <<HEAD
HEAD
;
if($c) {
- # if compressed
- use IO::Compress::Gzip;
+ # If compression requested, check that the Gzip module is available
+ # or else disable compression
+ $c = eval
+ {
+ require IO::Compress::Gzip;
+ IO::Compress::Gzip->import();
+ 1;
+ };
+ print STDERR "Warning: compression requested but Gzip is not available\n"
if (!$c)
+}
+
+if($c)
+{
my $content = join("", @out);
my $gzippedContent;
IO::Compress::Gzip::gzip(
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 55/205: mkhelp: simplified the gzip code, (continued)
- [GNUnet-SVN] [gnurl] 55/205: mkhelp: simplified the gzip code, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 102/205: travis: run tests-nonflaky instead of tests-full, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 77/205: winbuild: add basic support for OpenSSL 1.1.x, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 41/205: http2: Fix assertion error on redirect with CL=0, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 46/205: maketgz: Run updatemanpages.pl to update man pages, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 124/205: RELEASE-NOTES: synced with 556c51a2df, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 127/205: docs/Makefile.am: include CMakeLists.txt in the dist tarball, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 90/205: runtests.pl: fixed display of the Gopher IPv6 port number, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 125/205: curl: fix callback argument inconsistency, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 131/205: connect: fix unreferenced parameter warning, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 105/205: mkhelp: disable compression if the perl gzip module is unavailable,
gnunet <=
- [GNUnet-SVN] [gnurl] 19/205: no-keepalive.d: fix typo, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 123/205: KNOWN_BUGS: typo, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 135/205: http2: silence unused parameter warnings, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 177/205: .github/stale.yml: enable the stale bot, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 96/205: docs: split file lists into Makefile.inc, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 171/205: schannel: fix compiler warnings, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 183/205: poll: prefer <poll.h> over <sys/poll.h>, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 43/205: Makefile.am: Added scripts/updatemanpages.pl to EXTRA_DIST, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 194/205: .gitattributes: force shell scripts to LF, gnunet, 2017/04/20
- [GNUnet-SVN] [gnurl] 68/205: mbedtls: fix typo in variable name, gnunet, 2017/04/20