diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-24 18:03:57 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-24 18:03:57 +0000 |
commit | a32933770842a84b8e1615cbe424e74177f98fc3 (patch) | |
tree | 8bf3edddb8d5c8e6d4cd7a066f90eb7ebb1bb9d7 /sys-apps | |
parent | merkaartor: fix building with USE=-nls (diff) | |
download | gentoo-2-a32933770842a84b8e1615cbe424e74177f98fc3.tar.gz gentoo-2-a32933770842a84b8e1615cbe424e74177f98fc3.tar.bz2 gentoo-2-a32933770842a84b8e1615cbe424e74177f98fc3.zip |
24 Nov 2008; Zac Medico <zmedico@gentoo.org> portage-2.1.6_rc1.ebuild:
Add an ewarn message for people downgrading from portage-2.2, reminding
them to run revdep-rebuild when appropriate.
(Portage version: 2.1.6_rc1/cvs/Linux 2.6.27-1111-x86-64 i686)
Diffstat (limited to 'sys-apps')
-rw-r--r-- | sys-apps/portage/ChangeLog | 11 | ||||
-rw-r--r-- | sys-apps/portage/portage-2.1.6_rc1.ebuild | 13 |
2 files changed, 21 insertions, 3 deletions
diff --git a/sys-apps/portage/ChangeLog b/sys-apps/portage/ChangeLog index 019fa6069670..db26cde678f1 100644 --- a/sys-apps/portage/ChangeLog +++ b/sys-apps/portage/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-apps/portage # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.553 2008/11/24 07:25:24 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/ChangeLog,v 1.554 2008/11/24 18:03:57 zmedico Exp $ + + 24 Nov 2008; Zac Medico <zmedico@gentoo.org> portage-2.1.6_rc1.ebuild: + Add an ewarn message for people downgrading from portage-2.2, reminding + them to run revdep-rebuild when appropriate. *portage-2.1.6_rc1 (23 Nov 2008) @@ -10,7 +14,10 @@ been removed. In order to ensure that portage-2.1.6 gets sufficient testing, portage-2.2 will be masked in package.mask until portage-2.1.6 has been marked stable. If you would like to continue using portage-2.2 - then you should unmask it (instead of downgrading to portage-2.1.6). + then you should unmask it (instead of downgrading to portage-2.1.6). If + you are downgrading from portage-2.2 to portage-2.1.6, do not forget to + use revdep-rebuild when appropriate, since the @preserved-rebuild package + set is only supported with portage-2.2. *portage-2.2_rc16 (23 Nov 2008) diff --git a/sys-apps/portage/portage-2.1.6_rc1.ebuild b/sys-apps/portage/portage-2.1.6_rc1.ebuild index 610f56bc96fb..2c4367b2696b 100644 --- a/sys-apps/portage/portage-2.1.6_rc1.ebuild +++ b/sys-apps/portage/portage-2.1.6_rc1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.6_rc1.ebuild,v 1.1 2008/11/24 05:56:35 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.6_rc1.ebuild,v 1.2 2008/11/24 18:03:57 zmedico Exp $ inherit eutils multilib python @@ -219,6 +219,8 @@ pkg_preinst() { if [ -f "${ROOT}/etc/make.globals" ]; then rm "${ROOT}/etc/make.globals" fi + has_version ">=${CATEGORY}/${PN}-2.2_pre" + DOWNGRADE_FROM_2_2=$? } pkg_postinst() { @@ -230,6 +232,15 @@ pkg_postinst() { elog "For help with using portage please consult the Gentoo Handbook" elog "at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3" elog + + if [ $DOWNGRADE_FROM_2_2 = 0 ] ; then + ewarn + echo "Since you have downgraded from portage-2.2, do not forget to" \ + "use revdep-rebuild when appropriate, since the @preserved-rebuild" \ + "package set is only supported with portage-2.2." | fmt -w 70 | \ + while read ; do ewarn "$REPLY" ; done + ewarn + fi } pkg_postrm() { |