From 55c6e3795655ce443641e03fe92a4899cfe4a1b9 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Tue, 17 Jul 2001 19:11:48 +0000 Subject: [PATCH] include only the needed files --- pear/scripts/pear.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pear/scripts/pear.in b/pear/scripts/pear.in index 41fdde598d..850a0d21a7 100644 --- a/pear/scripts/pear.in +++ b/pear/scripts/pear.in @@ -19,8 +19,6 @@ // +----------------------------------------------------------------------+ // require_once 'PEAR.php'; -require_once 'PEAR/Installer.php'; -require_once 'PEAR/Packager.php'; require_once 'Console/Getopt.php'; error_reporting(E_ALL ^ E_NOTICE); @@ -67,6 +65,7 @@ PEAR::setErrorHandling(PEAR_ERROR_PRINT); $command = $options[1][1]; switch ($command) { case 'install': + require_once 'PEAR/Installer.php'; $package = $options[1][2]; $installer =& new PEAR_Installer($script_dir, $ext_dir, $doc_dir); $installer->debug = $verbose; @@ -77,6 +76,7 @@ switch ($command) { } break; case 'package': + require_once 'PEAR/Packager.php'; $pkginfofile = $options[1][2]; $packager =& new PEAR_Packager($script_dir, $ext_dir, $doc_dir); $packager->debug = $verbose; -- 2.50.1