On Mon, 4 Aug 2008 21:02:58 -0400
Mike Kelly <[EMAIL PROTECTED]> 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
fi

-- 
Ciaran McCreesh

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Exherbo-dev mailing list
[email protected]
http://lists.exherbo.org/mailman/listinfo/exherbo-dev

Reply via email to