Gentoo Archives: gentoo-dev

From: Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Unnecessary logs: has_version to the rescue?
Date: Wed, 31 Mar 2010 20:19:34
Message-Id: 20100331211904.0f49cae0@snowmobile
In Reply to: [gentoo-dev] Unnecessary logs: has_version to the rescue? by Sebastian Pipping
1 On Wed, 31 Mar 2010 22:08:40 +0200
2 Sebastian Pipping <sping@g.o> wrote:
3 > Is there some kind of evilness in this usage of has_version that I am
4 > not aware of?
5
6 Unfortunately, yes.
7
8 Historically, has_version in pkg_postinst would return results based
9 upon the version that *was* installed. This feature was widely used to
10 display context-aware post-install messages, and there were examples of
11 it in the documentation. Portage then silently changed this behaviour,
12 without an EAPI bump and without changing the documentation, breaking
13 all those packages in the process. The resulting mess discouraged many
14 people from bothering with that kind of thing...
15
16 --
17 Ciaran McCreesh

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies