From: Greg Beaver Date: Fri, 30 Apr 2004 16:37:39 +0000 (+0000) Subject: fix included files and put error messages in PEAR_Downloader where they are needed X-Git-Tag: RELEASE_0_1~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11be5f887be0e15ebe9e595e739fea6f010c0156;p=php fix included files and put error messages in PEAR_Downloader where they are needed --- diff --git a/pear/PEAR/Downloader.php b/pear/PEAR/Downloader.php index 56182d2b66..abb1a89d45 100644 --- a/pear/PEAR/Downloader.php +++ b/pear/PEAR/Downloader.php @@ -26,6 +26,12 @@ require_once 'PEAR/Dependency.php'; require_once 'PEAR/Remote.php'; require_once 'System.php'; + +define('PEAR_INSTALLER_OK', 1); +define('PEAR_INSTALLER_FAILED', 0); +define('PEAR_INSTALLER_SKIPPED', -1); +define('PEAR_INSTALLER_ERROR_NO_PREF_STATE', 2); + /** * Administration class used to download PEAR packages and maintain the * installed package database. diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index f998d4c751..0963dbd1f7 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -20,16 +20,7 @@ // // $Id$ -require_once 'PEAR/Common.php'; -require_once 'PEAR/Registry.php'; -require_once 'PEAR/Dependency.php'; require_once 'PEAR/Downloader.php'; -require_once 'System.php'; - -define('PEAR_INSTALLER_OK', 1); -define('PEAR_INSTALLER_FAILED', 0); -define('PEAR_INSTALLER_SKIPPED', -1); -define('PEAR_INSTALLER_ERROR_NO_PREF_STATE', 2); /** * Administration class used to install PEAR packages and maintain the