[Mageia-dev] non-working uninstall trigger
Anssi Hannula
anssi at mageia.org
Sat Nov 26 15:09:47 CET 2011
On 26.11.2011 16:07, Guillaume Rousse wrote:
> Hello list.
>
> bash-completion now uses dynamic function loading, making symlinks from
> /etc/bash_completion.d directory useless. I tried to reuse a
> post-install cleanup procedure based on trigger, so as to be fired only
> once during 1.2 -> 1.90 update:
>
> triggerpostun scriptlet (using /bin/sh) -- bash-completion < 1.90
> # drop dangling symlinks resulting from previous setup
> find /etc/bash-completion.d -type l | xargs rm -f
>
> For the record, I get my inspiration from this one, in the setup package:
>
> triggerpostun scriptlet (using /bin/sh) -- setup < 2.7.8
> # the files is no more in setup starting from 2.7.8, it is now in nfs-utils
> if [ -e /etc/exports.rpmsave ]; then
> mv -f /etc/exports.rpmsave /etc/exports && echo "warning:
> /etc/exports.rpmsave restored as /etc/exports"
> fi
>
> However, it doesn't work... Is it a problem in my trigger specification,
> or did anything change in rpm ?
bash-completion < 2:1.90
--
Anssi Hannula
More information about the Mageia-dev
mailing list