Re: PackageFileManager2 and subpackages

From: Date: Mon, 05 Mar 2007 15:34:09 +0000
Subject: Re: PackageFileManager2 and subpackages
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45818@lists.php.net to get a copy of this message
Lorenzo Alberton wrote: > Hi, > > for the next MDB2 release I'd like to add the ability to > install the MDB2 base package and a driver doing something like > > ========================= > $ pear install MDB2#mysql > ========================= > > and that's what the <group> and <subpackage> tags are for, > right? > > If so, I don't know how to add these entries to > package.xml using PackageFileManager2 (at least > I can't find an example on Laurent's guide). > > I guess these two methods might be what I need: > > PEAR_PackageFile_v2_rw::addSubpackageDepWithChannel() > PEAR_PackageFile_v2_rw::addGroupPackageDepWithChannel() > > but -for instance- how can I set the hint? > Is there an example I can follow? Hi Lorenzo, Stephan beat me to the punch on how to do this. Would you mind opening a documentation bug for P_PFM? Thanks, Greg

« previous php.pear.dev (#45818) next »