Installer patches

From: Date: Wed, 29 May 2002 06:36:55 +0000
Subject: Installer patches
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6559@lists.php.net to get a copy of this message
Couple of small fixes: - bug in creating the installer object. - adds callback to UI on _downloadCallback regards alan Index: Installer.php =================================================================== RCS file: /repository/php4/pear/PEAR/Installer.php,v retrieving revision 1.61 diff -u -b -B -r1.61 Installer.php
--- Installer.php       23 May 2002 20:42:33 -0000      1.61
+++ Installer.php       29 May 2002 06:34:06 -0000
@@ -527,6 +522,8 @@
                $this->log(1, '...done: ' . number_format($params, 0, '', ',') . ' bytes');
                break;
        }
+        if (method_exists($this->ui,'_downloadCallback'))
+            $this->ui->_downloadCallback($msg,$params);
    }
    // }}}
Index: Command/Install.php =================================================================== RCS file: /repository/php4/pear/PEAR/Command/Install.php,v retrieving revision 1.30 diff -u -b -B -r1.30 Install.php
--- Command/Install.php 21 May 2002 01:38:50 -0000      1.30
+++ Command/Install.php 29 May 2002 06:34:28 -0000 @@ -149,7 +149,7 @@
    function doInstall($command, $options, $params)
    {
        if (empty($this->installer)) {
-            $this->installer = &new PEAR_Installer($ui);
+            $this->installer = &new PEAR_Installer($this->ui);
        }
        if ($command == 'upgrade') {
            $options[$command] = true;
@@ -171,7 +171,7 @@
    function doUninstall($command, $options, $params)
    {
        if (empty($this->installer)) {
-            $this->installer = &new PEAR_Installer($ui);
+            $this->installer = &new PEAR_Installer($this->ui);
        }
        foreach ($params as $pkg) {


« previous php.pear.dev (#6559) next »