On 2006-12-12 14:04:25 +0100, Michal Marek wrote:
> > %postun
> > # remove the package from the pear-packagemanager
> > pear uninstall --nodeps --register-only PACKAGE
>
> I'd wrap it with 'if test -x /usr/bin/pear; then ... fi', because rpm
> doesn't implement ordering of packages during uninstallation.
i think a "Requires: php5-pear" should makre sure that php5-pear is
uninstalled after the pear modules.
> > But this maybe leads to some problems too.
> > One possible problem could be that the user removes the pear-package via the
> > pear commandline tool but the package still exists in the rpm database..?!
>
> I think this is a generic problem, it would be interesting to see
> how/whether is it solved in cpan or gems. Darix, Anicka, are you there? ;-)
i have the similar problem with my rubygem-* rpms. i thought about
hacking the cmdline tool to check if the module was installed via rpm
and error out in this case. so far i didnt find time to implement it.
we could use a similar solution for pear.
darix
--
openSUSE - SUSE Linux is my linux
openSUSE is good for you
www.opensuse.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]