From: "Amadeusz Żołnowski" <aidecoe@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Useless messages (elog, ewarn, etc) in ebuilds
Date: Tue, 21 Aug 2012 15:50:58 +0200 [thread overview]
Message-ID: <20120821135058.4319.16875@localhost> (raw)
In-Reply-To: <20120821143538.21cc35f3@googlemail.com>
[-- Attachment #1: Type: text/plain, Size: 884 bytes --]
Quoting Ciaran McCreesh (2012-08-21 15:35:38)
> On Tue, 21 Aug 2012 15:24:57 +0200 Amadeusz Żołnowski
> <aidecoe@gentoo.org> 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 #2: signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQEcBAABAgAGBQJQM5JCAAoJEPATRTHh2/q1ZaQH/jGrk4yqTCktl4OMUNbUWz5u
n41ZVTNLwSr8UhkVYTyxXS3sQaiFVRz3WrBmGtI6x0vG5TnFgwoxx/lqpd/RImXt
hlQ2FH3RqFW23oJLIxlfyJrOW/bbRxH5tLagh88pAMKKnoaDiLuVAf6GPIFmOing
wcYKWnPiVoWRAQ4SJIMkPEDN43BwFuHPUywMr6IfpfBaf3sh0b4qjUjFPexA6k3H
ngveCXVXY2afmaqdHFQK1AHr7J0Uv09vuDjYhJ6Gpbq+a1Bm2jjDMPZwhFD3+NbA
9+MlfjiiyvTn3/QbKNaQaqhedopjLAJdOGP7e+uVRdMZZg9I2B1Qf4PulAdaEXg=
=lXoN
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2012-08-21 13:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-21 13:24 [gentoo-dev] Useless messages (elog, ewarn, etc) in ebuilds Amadeusz Żołnowski
2012-08-21 13:35 ` Ciaran McCreesh
2012-08-21 13:50 ` Amadeusz Żołnowski [this message]
2012-08-21 14:12 ` Ciaran McCreesh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120821135058.4319.16875@localhost \
--to=aidecoe@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox