aboutsummaryrefslogtreecommitdiffstats
path: root/Packdrakeng.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-17 13:24:25 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-17 13:24:25 +0000
commit5a76ab8943e6a87cc34f6b269e9b819ed8890f8c (patch)
tree0368d11bf57e3a17dbee8cb0a56f1b61b81f8d7b /Packdrakeng.pm
parent0701eb7e7a89556e56368aa738a42e63bc459303 (diff)
downloadrpmtools-5a76ab8943e6a87cc34f6b269e9b819ed8890f8c.tar
rpmtools-5a76ab8943e6a87cc34f6b269e9b819ed8890f8c.tar.gz
rpmtools-5a76ab8943e6a87cc34f6b269e9b819ed8890f8c.tar.bz2
rpmtools-5a76ab8943e6a87cc34f6b269e9b819ed8890f8c.tar.xz
rpmtools-5a76ab8943e6a87cc34f6b269e9b819ed8890f8c.zip
Ensure Packdrakeng::zlib loads properly, and is not used if Compress::Zlib
is not available
Diffstat (limited to 'Packdrakeng.pm')
-rw-r--r--Packdrakeng.pm1
1 files changed, 1 insertions, 0 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;