From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 63671138010 for ; Tue, 21 Aug 2012 13:52:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8D6F9E076E; Tue, 21 Aug 2012 13:52:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 71331E0748 for ; Tue, 21 Aug 2012 13:51:08 +0000 (UTC) Received: from localhost (178.181.136.120.nat.umts.dynamic.t-mobile.pl [178.181.136.120]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aidecoe) by smtp.gentoo.org (Postfix) with ESMTPSA id 46F0A1B42CB for ; Tue, 21 Aug 2012 13:51:07 +0000 (UTC) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="===============6350557632808679690==" Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Disposition: inline From: =?utf-8?q?Amadeusz_=C5=BBo=C5=82nowski?= User-Agent: alot/0.3.2 To: gentoo-dev@lists.gentoo.org References: <20120821132457.4319.78667@localhost> <20120821143538.21cc35f3@googlemail.com> In-Reply-To: <20120821143538.21cc35f3@googlemail.com> Message-ID: <20120821135058.4319.16875@localhost> Subject: Re: [gentoo-dev] Useless messages (elog, ewarn, etc) in ebuilds Date: Tue, 21 Aug 2012 15:50:58 +0200 X-Archives-Salt: 60099d44-788a-4fe2-ad1a-71db42c9180d X-Archives-Hash: 3ebed9d6c721711be9c5939e48a9ed5c --===============6350557632808679690== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Quoting Ciaran McCreesh (2012-08-21 15:35:38) > On Tue, 21 Aug 2012 15:24:57 +0200 Amadeusz =C5=BBo=C5=82nowski > 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 =C5=BBo=C5=82nowski --===============6350557632808679690== MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Description: signature Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii" -----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----- --===============6350557632808679690==--