cvs: php4 /pear/PEAR Installer.php
| From: | Stig Bakken | Date: | Sun, 07 Apr 2002 21:09:42 +0000 |
| Subject: | cvs: php4 /pear/PEAR Installer.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3118@lists.php.net to get a copy of this message | ||
ssb Sun Apr 7 17:09:42 2002 EDT
Modified files:
/php4/pear/PEAR Installer.php
Log:
* append "?uncompress=yes" to the package download url if zlib extension
is not loaded
Index: php4/pear/PEAR/Installer.php
diff -u php4/pear/PEAR/Installer.php:1.43 php4/pear/PEAR/Installer.php:1.44
--- php4/pear/PEAR/Installer.php:1.43 Sun Apr 7 06:38:02 2002
+++ php4/pear/PEAR/Installer.php Sun Apr 7 17:09:41 2002
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Installer.php,v 1.43 2002/04/07 10:38:02 ssb Exp $
+// $Id: Installer.php,v 1.44 2002/04/07 21:09:41 ssb Exp $
require_once 'PEAR/Common.php';
require_once 'PEAR/Registry.php';
@@ -191,6 +191,9 @@
} else {
$pkgfile = "http://" .
$config->get('master_server') .
"/get/$pkgfile";
+ }
+ if (!extension_loaded("zlib")) {
+ $pkgfile .= '?uncompress=yes';
}
$need_download = true;
} else {