Re: PEAR channel server for applications and libraries outside PEAR
| From: | Justin Patrin | Date: | Fri, 01 Jun 2007 17:14:49 +0000 |
| Subject: | Re: PEAR channel server for applications and libraries outside PEAR | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-46942@lists.php.net to get a copy of this message | ||
On 6/1/07, Sebastian Nohn <sebastian@nohn.net> wrote:
Justin Patrin wrote: On 6/1/07, Sebastian Nohn <sebastian@nohn.net> wrote:This seems like a bug. Have you upgraded PEAR to the newest version? If so, create a bug report.THere's always pear upgrade channel://package as well. It is a reality that multiple channels can have packages names the same, hence the need for disambiguation via the channel name. # pear upgrade phpunit/phpunit Nothing to upgrade # pear upgrade phpunit://phpunit Cannot initialize 'phpunit://phpunit', invalid or missing package file Package "phpunit://phpunit" is not valid upgrade failed # pear upgrade http://pear.phpunit.de/get/PHPUnit-3.0.6.tgz downloading PHPUnit-3.0.6.tgz ... Starting to download PHPUnit-3.0.6.tgz (100,140 bytes) ......................done: 100,140 bytes WARNING: channel "pear.phpunit.de" has updated its protocols, use "channel-update pear.phpunit.de" to update Did not download optional dependencies: pear/Image_GraphViz, pear/Log, pear/Testing_Selenium, use --alldeps to download automatically phpunit/PHPUnit can optionally use package "pear/Image_GraphViz" (version >= 1.2.1) upgrade ok: channel://pear.phpunit.de/PHPUnit-3.0.6\Greg Beaver wrote:Sebastian Nohn wrote:pear config-set default_channel whatever.com then all end user commands will work identically to the way they work for pear.php.net. (This has worked since PEAR 1.4.0 FYI)also supports multiple channels, also a very convenient way to distribute PHP applications.Hi Christian, Christian Weiske wrote:PEAR is the best method to distribute PHP libraries, and since ithttp://pear.geeklog.net/ ), other apps and libs do have PEAR-installable packages, but don't want to set up and maintain a complete channel server (e.g. OpenID libraries, http://www.openidenabled.com/openid/libraries/php ).Some apps already have their own channel server (e.g. Geeklog,channel server that is open for everyone. pearified.com has been started as such a project, but the lead, Clay Loveless, does not respond to any emails.The ideal place for those projects would be a dedicated PEARallSuggestions, ideas, volunteers?I think, first the pear command line tool should be able to performend user commands in a comfortable way on different channels.Do you call that comfortable?
That is not very intuitive. What if I want to upgrade the whole channel?That's not supported AFAIK but a channel argument to upgrade-all would take care of that.
Or list all packages in a channel?pear list -c channel
Or just upgrade all packages, no matter what channel they are in?pear upgrade-all (and pear list-upgrades) Remember that channels are relatively new. If you have suggestions for a better UI please e-mail the list and create a bug in the tracker for us. Greg is hard at work on Pyrus, the next version of the PEAR installer. -- Justin Patrin