Quoting Ciaran McCreesh (2012-08-21 15:35:38)
> On Tue, 21 Aug 2012 15:24:57 +0200 Amadeusz Żołnowski
> <[email protected]> wrote:
> > We have "has_version" function to check if user has actually updated
> > from relevant version.  Please use this to not confuse users who
> > installed the package first time or are upgrading from Y to another
> > version.
> 
> Doing it using has_version isn't really recommended, since...
>
> [...]
> 
> It's thus much better to use REPLACING_VERSIONS (which is plural, and
> this is important) rather than has_version, if you're asking about the
> current package rather than another package.

Right.  Thanks.  REPLACING_VERSIONS and REPLACED_BY_VERSION is much
better, but for older EAPIs couldn't one set it manually with help of
has_version in pkg_setup and check that var later in postinst?.

-- 
Amadeusz Żołnowski

Attachment: signature.asc
Description: signature

Reply via email to