On 03/31/2010 01:37 PM, Sebastian Pipping wrote:
> On 03/31/10 22:31, Zac Medico wrote:
>> For those who may not know, has_version can be called in pkg_preinst
>> to find the previous version, and the result can be stored in a
>> variable for us in pkg_postinst.
> 
> So has_version takes the version just installed into account when called
> from pkg_postinst?  If so wouldn't be banning it's usage from that stage
> a good idea?  I just checked the code, no such check, yet.

Well, it works fine when not called for the same $CATEGORY/$PN, and
even for the same $CATEGORY/$PN it works fine for other slots it
they happen to be installed.
-- 
Thanks,
Zac

Reply via email to