From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1K8U1f-0004BR-Im for garchives@archives.gentoo.org; Tue, 17 Jun 2008 05:46:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7FE2E030E; Tue, 17 Jun 2008 05:46:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B5414E030E for ; Tue, 17 Jun 2008 05:46:38 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 4766A672CF for ; Tue, 17 Jun 2008 05:46:38 +0000 (UTC) Received: from zmedico by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1K8U1a-0000KS-83 for gentoo-commits@lists.gentoo.org; Tue, 17 Jun 2008 05:46:34 +0000 To: gentoo-commits@lists.gentoo.org From: "Zac Medico (zmedico)" Subject: [gentoo-commits] portage r10684 - main/branches/2.1.2/doc/package/ebuild X-VCS-Repository: portage X-VCS-Revision: 10684 X-VCS-Files: main/branches/2.1.2/doc/package/ebuild/phases.docbook X-VCS-Directories: main/branches/2.1.2/doc/package/ebuild X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico Content-Type: text/plain; charset=UTF-8 Message-Id: Sender: Zac Medico Date: Tue, 17 Jun 2008 05:46:34 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 671c4fae-4c3e-43bc-b696-f857320ac839 X-Archives-Hash: 6e0abbdea09c0216daabbd47b1abb3cb Author: zmedico Date: 2008-06-17 05:46:33 +0000 (Tue, 17 Jun 2008) New Revision: 10684 Modified: main/branches/2.1.2/doc/package/ebuild/phases.docbook Log: Add a "Interaction with previous installed version" section to document t= he upgrade/downgrade phase execution order change from bug #226505. (trunk r10683) Modified: main/branches/2.1.2/doc/package/ebuild/phases.docbook =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- main/branches/2.1.2/doc/package/ebuild/phases.docbook 2008-06-17 05:4= 4:21 UTC (rev 10683) +++ main/branches/2.1.2/doc/package/ebuild/phases.docbook 2008-06-17 05:4= 6:33 UTC (rev 10684) @@ -40,4 +40,61 @@ + + Interaction with previous installed version + + The order for upgrade and downgrade operations changed in + version 2.1.5, but the order for reinstall operations remained unchange= d. + + + Upgrade/downgrade order used by versions less than 2.1.5 (deprec= ated) + + + + pkg_preinst + + + pkg_postinst + + + pkg_prerm + + + pkg_postrm + + + + + + Upgrade/downgrade order starting with version 2.1.5 + + The new order for upgrades and downgrades is identical to the order use= d + for reinstall operations: + + + + + pkg_preinst + + + pkg_prerm + + + pkg_postrm + + + pkg_postinst + + + + + Now that pkg_postinst is called after all other phases, it's not possib= le to + call has_version in pkg_postinst to detect whether the current install + operation is an upgrade or downgrade. If this information is needed dur= ing the + pkg_postinst phase, do the has_version call in an earlier phase (such a= s + pkg_preinst) and store the result in a global variable to be accessed b= y + pkg_postinst when it is called. + + + --=20 gentoo-commits@lists.gentoo.org mailing list