Bug #17127: pear upgrade <package> fails
| From: | colin at easydns dot com | Date: | Thu, 09 May 2002 19:36:50 +0000 |
| Subject: | Bug #17127: pear upgrade <package> fails | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-6023@lists.php.net to get a copy of this message | ||
From: colin@easydns.com
Operating system: Linux 2.4.6 / Debian
PHP version: 4.0CVS-2002-05-09
PHP Bug Type: PEAR related
Bug description: pear upgrade <package> fails
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 bug report at http://bugs.php.net/?id=17127&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17127&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17127&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17127&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17127&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17127&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17127&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17127&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17127&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17127&r=globals