Bug #17127 Updated: pear upgrade <package> fails

From: Date: Thu, 09 May 2002 19:57:16 +0000
Subject: Bug #17127 Updated: pear upgrade <package> fails
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6024@lists.php.net to get a copy of this message
ID: 17127 Updated by: ssb@php.net Reported By: colin@easydns.com -Status: Open +Status: Closed Bug Type: PEAR related Operating System: Linux 2.4.6 / Debian PHP Version: 4.0CVS-2002-05-09 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2002-05-09 15:36:50] colin@easydns.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17127&edit=1

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