Re: Re: Failed updating PEAR / Suse 8.1
| From: | Klaus Guenther | Date: | Sat, 06 Dec 2003 23:04:37 +0000 |
| Subject: | Re: Re: Failed updating PEAR / Suse 8.1 | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9337@lists.php.net to get a copy of this message | ||
From: "Greg Beaver" <greg@chiaraquartet.net>
> Hi,
>
> This is the official warning:
>
> Do NOT upgrade to Console_Getopt 1.1, it will break absolutely
> everything with the command-line installer.
>
> OK :)
>
> Now, to fix this, you can upgrade to the cvs version of PEAR, but you
> MUST also upgrade to Console_Getopt at the same time - this is very,
> very important. If you upgrade to console_getopt, and then on the next
> installation attempt to upgrade PEAR, it will not work.
>
> $ pear upgrade package-PEAR.xml package-Console_Getopt.xml
>
> This is the only current way to upgrade successfully. I've asked Andrei
> to remove the 1.1 release, and re-release as 2.0 to indicate the rather
> substantial BC break removing those 3 lines of code causes.
>
> Basically, every piece of code that used Console_Getopt::getopt() and
> relied upon the fact that the first option is always discarded is now
> officially broken. This means absolutely EVERY piece of code that ever
> used it. The maintainers of PECL_Gen and System_Procwatch take note.
>
> Regards,
> Greg
If you have already upgraded Console_Getopt, there's still hope -- you
simply need to manually "revert" your upgrade. That's most easily done by
grabbing the 1.0 package and putting Getopt.php in %PEAR%/Console/ Then I'd
suggest running the following command to get your registry back in shape :-)
$ pear upgrade -f Console_Getopt-1.0
It worked for me :-)
Regards,
Klaus