summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2016-02-06 10:33:11 +0100
committerMichał Górny <mgorny@gentoo.org>2016-02-06 10:57:35 +0100
commite70104882d328ea04279170b351dc63dc5b6ca3e (patch)
tree2a60ac634e805dfc3582736a0779e45eda3d421b /app-eselect
parentapp-eselect/eselect-python: Remove keepdir for unused directory (diff)
downloadgentoo-e70104882d328ea04279170b351dc63dc5b6ca3e.tar.gz
gentoo-e70104882d328ea04279170b351dc63dc5b6ca3e.tar.bz2
gentoo-e70104882d328ea04279170b351dc63dc5b6ca3e.zip
app-eselect/eselect-python: Do not update meaningless py2 preference
We no longer support more than one version of Python 2, so the Python2 preference is no longer meaningful and causes Python 2 to be preferred over non-preferred versions of Python 3.
Diffstat (limited to 'app-eselect')
-rw-r--r--app-eselect/eselect-python/eselect-python-99999999.ebuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/app-eselect/eselect-python/eselect-python-99999999.ebuild b/app-eselect/eselect-python/eselect-python-99999999.ebuild
index f9b8c65f2602..52eb0ceceb52 100644
--- a/app-eselect/eselect-python/eselect-python-99999999.ebuild
+++ b/app-eselect/eselect-python/eselect-python-99999999.ebuild
@@ -33,9 +33,7 @@ pkg_postinst() {
eselect python update --if-unset
fi
- for py in 2 3; do
- if has_version "=dev-lang/python-${py}*"; then
- eselect python update "--python${py}" --if-unset
- fi
- done
+ if has_version "=dev-lang/python-3*"; then
+ eselect python update "--python3" --if-unset
+ fi
}