Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Unnecessary logs: has_version to the rescue?
Date: Wed, 31 Mar 2010 20:40:35
Message-Id: 4BB3B3AC.2020009@gentoo.org
In Reply to: Re: [gentoo-dev] Unnecessary logs: has_version to the rescue? by Sebastian Pipping
1 On 03/31/2010 01:37 PM, Sebastian Pipping wrote:
2 > On 03/31/10 22:31, Zac Medico wrote:
3 >> For those who may not know, has_version can be called in pkg_preinst
4 >> to find the previous version, and the result can be stored in a
5 >> variable for us in pkg_postinst.
6 >
7 > So has_version takes the version just installed into account when called
8 > from pkg_postinst? If so wouldn't be banning it's usage from that stage
9 > a good idea? I just checked the code, no such check, yet.
10
11 Well, it works fine when not called for the same $CATEGORY/$PN, and
12 even for the same $CATEGORY/$PN it works fine for other slots it
13 they happen to be installed.
14 --
15 Thanks,
16 Zac

Replies

Subject Author
Re: [gentoo-dev] Unnecessary logs: has_version to the rescue? Sebastian Pipping <sping@g.o>