From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Nx4fD-0000N9-J3 for garchives@archives.gentoo.org; Wed, 31 Mar 2010 20:37:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CDAA8E0AB2; Wed, 31 Mar 2010 20:37:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2FEF4E0914 for ; Wed, 31 Mar 2010 20:37:16 +0000 (UTC) Received: from [192.168.0.3] (e179018081.adsl.alicedsl.de [85.179.18.81]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 741FC646CC for ; Wed, 31 Mar 2010 20:37:15 +0000 (UTC) Message-ID: <4BB3B279.4060308@gentoo.org> Date: Wed, 31 Mar 2010 22:37:13 +0200 From: Sebastian Pipping User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100310 Thunderbird/3.0.3 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Unnecessary logs: has_version to the rescue? References: <4BB3ABC8.7050207@gentoo.org> <20100331211904.0f49cae0@snowmobile> <4BB3B11A.1020505@gentoo.org> In-Reply-To: <4BB3B11A.1020505@gentoo.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 6ab8702b-6a56-4793-84e1-20dec27d3923 X-Archives-Hash: f4769b052cf7a3c67506ed0278d2aec6 On 03/31/10 22:31, Zac Medico wrote: > For those who may not know, has_version can be called in pkg_preinst > to find the previous version, and the result can be stored in a > variable for us in pkg_postinst. So has_version takes the version just installed into account when called from pkg_postinst? If so wouldn't be banning it's usage from that stage a good idea? I just checked the code, no such check, yet. Sebastian