[Exherbo-dev] Fw: New pkg_{pre, post}{inst, rm} order for upgrades and downgrades

Ciaran McCreesh ciaran.mccreesh at googlemail.com
Tue Aug 5 02:09:59 BST 2008

On Mon, 4 Aug 2008 21:02:58 -0400
Mike Kelly <pioto at pioto.org> wrote:
> What about adding pkg_{pre,post}reinst() (to be run before and after
> the merging of a package which is already installed)? I think knowing
> that we're being reinstalled, rather than just installed/uninstalled,
> might be useful.

Or possibly more deviously:

if had_version '<'${CATEGORY}/${PF} ; then
    echo upgrade
elif had_version =${CATEGORY}/${PF} ; then
    echo reinstall
elif had_version '>'${CATEGORY}/${PF} ; then
    echo downgrade

Ciaran McCreesh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.exherbo.org/pipermail/exherbo-dev/attachments/20080805/668714bb/attachment.pgp>

More information about the Exherbo-dev mailing list