Gentoo Archives: gentoo-dev

From: "Amadeusz Żołnowski" <aidecoe@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Useless messages (elog, ewarn, etc) in ebuilds
Date: Tue, 21 Aug 2012 13:52:20
Message-Id: 20120821135058.4319.16875@localhost
In Reply to: Re: [gentoo-dev] Useless messages (elog, ewarn, etc) in ebuilds by Ciaran McCreesh
1 Quoting Ciaran McCreesh (2012-08-21 15:35:38)
2 > On Tue, 21 Aug 2012 15:24:57 +0200 Amadeusz Żołnowski
3 > <aidecoe@g.o> wrote:
4 > > We have "has_version" function to check if user has actually updated
5 > > from relevant version. Please use this to not confuse users who
6 > > installed the package first time or are upgrading from Y to another
7 > > version.
8 >
9 > Doing it using has_version isn't really recommended, since...
10 >
11 > [...]
12 >
13 > It's thus much better to use REPLACING_VERSIONS (which is plural, and
14 > this is important) rather than has_version, if you're asking about the
15 > current package rather than another package.
16
17 Right. Thanks. REPLACING_VERSIONS and REPLACED_BY_VERSION is much
18 better, but for older EAPIs couldn't one set it manually with help of
19 has_version in pkg_setup and check that var later in postinst?.
20
21 --
22 Amadeusz Żołnowski

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] Useless messages (elog, ewarn, etc) in ebuilds Ciaran McCreesh <ciaran.mccreesh@××××××××××.com>