php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17127 pear upgrade <package> fails
Submitted: 2002-05-09 15:36 UTC Modified: 2002-05-09 15:57 UTC
From: colin at easydns dot com Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.0CVS-2002-05-09 OS: Linux 2.4.6 / Debian
Private report: No CVE-ID: None
 [2002-05-09 15:36 UTC] colin at easydns dot com
I belive the following diff fixes this:

--- OLD.Installer.php   Thu May  9 15:33:55 2002
+++ Installer.php       Thu May  9 15:34:21 2002
@@ -250,7 +250,7 @@
         } elseif (!@is_file($pkgfile)) {
             if (preg_match('/^[A-Z][A-Za-z0-9_]+$/', $pkgfile)) {
                 // valid package name
-                if ($this->registry->packageExists($pkgfile)) {
+                if (empty($options['upgrade']) && $this->registry->packageExists($pkgfile)) {
                     return $this->raiseError("$pkgfile already installed");
                 }
                 if ($config === null) {

- Colin

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-09 15:57 UTC] ssb@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/. 
Thank you for the report.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC