Re: Problems upgrading pear packages with a copied pear repository
| From: | Gregory Beaver | Date: | Thu, 18 Jan 2007 02:37:19 +0000 |
| Subject: | Re: Problems upgrading pear packages with a copied pear repository | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-45503@lists.php.net to get a copy of this message | ||
Justin Patrin wrote:
> On 1/17/07, David Sanders <dsanders@baselinesolutions.com.au> wrote:
>> Hi all,
>>
>> I create an instance of a pear repository for each web application that I
>> create. I also add this pear repository to svn. Sometimes I'll check
>> out
>> an application into a different workspace and try to update the pear
>> repository from this new workspace.
>>
>> I've always thought that just switching php_dir, doc_dir, data_dir and
>> test_dir
>> over to the new location would take care of this and this works just
>> fine for
>> installing new packages. However I've just found out that the
>> .registry stores
>> the full absolute pathname of the installed package that it was first
>> installed
>> into. Then when I try to upgrade certain packages, pear tries to
>> delete the
>> packages from the original location.
>>
>> Is there any way around this problem? I would've thought that the
>> best way to
>> handle this would be to only store the relative pathname from the pear
>> root, and
>> prefix the php_dir setting onto the front when attempting to delete
>> files?
>>
>
> The only way to fix this right now would be to unserialize the
> registry and convert all paths to your new path. I'm not sure if there
> are current plans to fix this specific issue but Greg Beaver has many
> enhancements he is planning to make to PEAR regarding the registry.
Hi,
The new PEAR registry for PEAR2 no longer stores absolute paths.
Greg