summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-25 17:31:16 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-25 17:31:16 +0000
commit006d3aa8f93dd2a39ca14897b519baf40b2fe531 (patch)
tree5358e0f318b2a9c9340b5e9c6c28fc7599be4310 /app-admin/eselect-python
parentVersion bump via perl-bump experimental tool. (diff)
downloadgentoo-2-006d3aa8f93dd2a39ca14897b519baf40b2fe531.tar.gz
gentoo-2-006d3aa8f93dd2a39ca14897b519baf40b2fe531.tar.bz2
gentoo-2-006d3aa8f93dd2a39ca14897b519baf40b2fe531.zip
Disallow downgrades from >=app-admin/eselect-python-20090804 to avoid problems caused by disappearing python-wrapper.
(Portage version: 14155-svn/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/eselect-python')
-rw-r--r--app-admin/eselect-python/eselect-python-20090606.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/app-admin/eselect-python/eselect-python-20090606.ebuild b/app-admin/eselect-python/eselect-python-20090606.ebuild
index a0682b4bfef9..cc25573790f0 100644
--- a/app-admin/eselect-python/eselect-python-20090606.ebuild
+++ b/app-admin/eselect-python/eselect-python-20090606.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-20090606.ebuild,v 1.7 2009/07/11 20:40:16 josejx Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/eselect-python/eselect-python-20090606.ebuild,v 1.8 2009/08/25 17:31:16 arfrever Exp $
DESCRIPTION="Manages multiple Python versions"
HOMEPAGE="http://www.gentoo.org"
@@ -13,6 +13,12 @@ IUSE=""
RDEPEND=">=app-admin/eselect-1.0.2"
+pkg_setup() {
+ if has_version ">=app-admin/eselect-python-20090804"; then
+ die "Downgrade of app-admin/eselect-python is not supported"
+ fi
+}
+
src_install() {
insinto /usr/share/eselect/modules
newins "${WORKDIR}/python.eselect-${PVR}" python.eselect || die "newins python.eselect failed"