Re: channels information

From: Date: Wed, 17 Dec 2003 21:43:25 +0000
Subject: Re: channels information
References: 1 2  Groups: php.pear.core 
Request: Send a blank email to pear-core+get-11@lists.php.net to get a copy of this message
Hi Derick thanks for the reply, comments below. Derick Rethans wrote:
I would just make all the current settings also settable for all the different channels. For example I can think of reasons why I want the default 'state' of the Horde channel to be set to 'beta' and the PEAR channel to 'stable'. Right, this will definitely be the case in the installer, I was only talking about the constant aspects of a channel. In other words, a channel's server is not configurable by the user, nor is its name/summary and channel-specified installroot. However, the user can modify the preferred_state and other aspects for that channel in their local config. I am sure that what I just said can be better worded :(
Manual channel registrations must include the server name in the channel name, and be in the format ChannelNickName-server.name.com to allow differentiation from possible global channels with the same name. Note that locally registered channel nicknames are the full "ChannelNickName-server.name.com"
Why not name channels like Java 'packages', something like: org.horde and for pear/pecl: net.php.pear and net.php.pecl you solve the collisions in channel names with this without inventing something new. right so a local channel could be local.channelnickname
I think that putting the server in the channel name might not be as good, simply because if a server's domain name should change, that breaks all the existing installed packages. I do think using . separators makes a lot of sense. $ pear install php.pear::Log That look like good syntax?
<package> <name>PEAR::Log</name> For Backwards Compatibility, if no channel is specified, the PEAR channel will be assumed for all dependencies.
Hmm, why exactly does the channel name to be specified here? This scenario:
User A has no internet, and has both PEAR::Log and Horde::Log installed (hypothetical, obviously). User A borrows a disk from User B who used pear download PEAR::Log to get Log-1.8.0.tgz for User A. when User A runs: $ pear upgrade Log-1.8.0.tgz how does the installer know which Log package to upgrade? Only if the channel is in the package.xml file. How it is done is negotiable. I could see instead <name channel="php.pear">Log</name> as a better option.
Sub-Channels ------------ A sub-channel is a separate collection of packages that share the same namespace as a channel. In other words, if PEAR has a sub-channel named QA, this sequence is possible: $ pear install PEAR::Log install to 1.10 OK $ pear upgrade PEAR::QA::Log
You could make this: net.php.pear.qa then... I like this much better
Greg

« previous php.pear.core (#11) next »