Re: Console_Getopt - PEAR dependency and package xml 2.0

From: Date: Wed, 20 Dec 2006 19:24:07 +0000
Subject: Re: Console_Getopt - PEAR dependency and package xml 2.0
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26161@lists.php.net to get a copy of this message
Laurent Laville wrote: > Hi all, > > I want to share my explain of a problem I got when I've tried to upgrade > "Console_Getopt" from 1.2 to 1.2.1 version > (both stable) > > First I was surprised to see such message on dos-box console (I'm on > Windows platform). > *** > pear/pear dependency package "pear/Console_Getopt" downloaded version > 1.2.1 is n > ot the recommended version 1.2, but may be compatible, use --force to > install > pear/Console_Getopt cannot be installed, conflicts with installed packages > No valid packages found > upgrade failed > *** > > So, as I was trying to upgrade on PEAR 1.5.0 RC2 installation, I suppose > it was the problem, but it was not ! > On PEAR 1.4.11 I got the same message. > > Then I investigate under all my packages installed to see where this > problem come from. > And I was very surprise to see that it come from PEAR package itself > (package xml 2.0) > > <package> > <name>Console_Getopt</name> > <channel>pear.php.net</channel> > <min>1.2</min> > <recommended>1.2</recommended> [1] > </package> Hi Laurent, This is intentional. The <recommended> tag enforces strict validation, as we had a problem with the PEAR Installer breaking on upgrade to an earlier version of a dependency (it happened to be Console_Getopt, but that is not relevant) which required extensive repairs. This way, you cannot accidentally break the installer, you have to do it manually via: pear upgrade --loose Console_Getopt or wait until we've fully tested it with the PERA Installer and verify it works, releasing an update. Thanks, Greg

« previous php.pear.general (#26161) next »