aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Packdrakeng.pm1
-rw-r--r--Packdrakeng/zlib.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/Packdrakeng.pm b/Packdrakeng.pm
index f860557..5fa03cf 100644
--- a/Packdrakeng.pm
+++ b/Packdrakeng.pm
@@ -139,6 +139,7 @@ sub choose_compression_method {
$pack->{compress_method} ||= "gzip";
if (!$pack->{force_extern}) {
eval {
+ require Compress::Zlib; #- need this to ensure that Packdrakeng::zlib will load properly
require Packdrakeng::zlib;
$pack->{subcompress} = \&Packdrakeng::zlib::gzip_compress;
$pack->{subuncompress} = \&Packdrakeng::zlib::gzip_uncompress;
diff --git a/Packdrakeng/zlib.pm b/Packdrakeng/zlib.pm
index d541a67..d975060 100644
--- a/Packdrakeng/zlib.pm
+++ b/Packdrakeng/zlib.pm
@@ -147,4 +147,4 @@ sub gzip_uncompress {
$byteswritten
}
-
+1;