List Info

Thread: PackageFileManager2 and subpackages




PackageFileManager2 and subpackages
user name
2007-03-05 03:11:58
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?

Thanks in advance.

-- 
Lorenzo Alberton
http://pear.php.net/us
er/quipo
____________________________________________________________
_______
Quipo Free Internet - 2 email, 150 Mb di spazio web e molto
di pił.
ADSL, Hardware & Software Online Store

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: PackageFileManager2 and subpackages
user name
2007-03-05 04:08:51
Hi,

Lorenzo Alberton wrote:
> 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?

Here's an example:

http://www.php-tools.net/svn/patForms/trunk/package.php

You have to init the group using addDependencyGroup().

HTH,
Stephan

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: PackageFileManager2 and subpackages
user name
2007-03-05 09:47:55
Hi Stephan,

>>
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?
> 
> Here's an example:
> http://www.php-tools.net/svn/patForms/trunk/package.php
> You have to init the group using addDependencyGroup().

many thanks!

-- 
Lorenzo Alberton
http://pear.php.net/us
er/quipo
____________________________________________________________
_______
Quipo Free Internet - 2 email, 150 Mb di spazio web e molto
di pił.
ADSL, Hardware & Software Online Store

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


Re: PackageFileManager2 and subpackages
user name
2007-03-05 09:34:09
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

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )