From 67b971aecec2456e9a4ee84a0186836dad08af81 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Thu, 21 Mar 2002 11:04:56 +0000 Subject: [PATCH] Clean up unused stuff --- pear/PEAR/Packager.php | 43 ++++-------------------------------------- 1 file changed, 4 insertions(+), 39 deletions(-) diff --git a/pear/PEAR/Packager.php b/pear/PEAR/Packager.php index d4fd0c187f..8ef95bf78d 100644 --- a/pear/PEAR/Packager.php +++ b/pear/PEAR/Packager.php @@ -26,7 +26,6 @@ require_once 'PEAR/Common.php'; * * TODO: * - add an extra param the dir where to place the created package - * - finish and test Windows support * * @since PHP 4.0.2 * @author Stig Bakken @@ -35,51 +34,16 @@ class PEAR_Packager extends PEAR_Common { // {{{ properties - /** assoc with information about the package */ - var $pkginfo = array(); - - /** name of the package directory, for example Foo-1.0 */ - var $pkgdir; - - /** directory where PHP code files go */ - var $phpdir; - - /** directory where PHP extension files go */ - var $extdir; - - /** directory where documentation goes */ - var $docdir; - - /** directory where system state information goes */ - var $statedir; - /** debug mode (integer) */ var $debug = 0; - /** temporary directory */ - var $tmpdir; - - /** whether file list is currently being copied */ - var $recordfilelist; - - /** temporary space for copying file list */ - var $filelist; - - /** package name and version, for example "HTTP-1.0" */ - var $pkgver; - // }}} // {{{ constructor - function PEAR_Packager($phpdir = PEAR_INSTALL_DIR, - $extdir = PEAR_EXTENSION_DIR, - $docdir = '') + function PEAR_Packager() { $this->PEAR(); - $this->phpdir = $phpdir; - $this->extdir = $extdir; - $this->docdir = $docdir; } // }}} @@ -135,14 +99,15 @@ class PEAR_Packager extends PEAR_Common return $this->raiseError("File $fname does not exist"); } else { $filelist[$i++] = $fname; + $this->log(2, "Adding file $fname"); } } // XXX TODO: Rebuild the package file as the old method did? // TAR the Package ------------------------------------------- $dest_package = $this->orig_pwd . DIRECTORY_SEPARATOR . "{$pkgver}.tgz"; - $tar = new Archive_Tar($dest_package, true); - $tar->setErrorHandling(PEAR_ERROR_PRINT); + $tar =& new Archive_Tar($dest_package, true); + $tar->setErrorHandling(PEAR_ERROR_PRINT); // XXX Don't print errors // ----- Creates with the package.xml file if (!$tar->create($pkgfile)) { return $this->raiseError('an error ocurred during package creation'); -- 2.50.1