PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » PEAR » PEAR » Bug #9712

pear uninstall --register-only remove file : it should not

Details

Submitted2006-12-30 17:10 UTC
FromFedora at FamilleCollet dot com
Assignedcellog
StatusClosed
PackagePEAR
PHP Version5.2.0
OSFedora Core 6
Roadmaps(Not assigned)

Comments

[2006-12-30 17:10 UTC] Fedora at FamilleCollet dot com

Description:
------------
When you
pear uninstall --nodeps --ignore-errors --register-only foo

The file owned by foo are removed.

Documentation say it should not.

This is a big problem when packaging RPM:
when a package "obsolotes" a old one, "pear uninstall" (in %postun) delete newly installed files.

Test script:
---------------
# pear install File
# ls /usr/share/pear/File.php
/usr/share/pear/File.php
# pear uninstall --nodeps --ignore-errors --register-only File
# ls /usr/share/pear/File.php
ls: /usr/share/pear/File.php: No such file or directory

[2006-12-30 17:32 UTC] Fedora at FamilleCollet dot com

Simple patch proposal :
http://remi.collet.free.fr/files/Installer.patch