From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-861766-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id A495858973
	for <garchives@archives.gentoo.org>; Sat,  6 Feb 2016 09:58:06 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 900D221C008;
	Sat,  6 Feb 2016 09:58:05 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 1210521C008
	for <gentoo-commits@lists.gentoo.org>; Sat,  6 Feb 2016 09:58:05 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 320F4340B6A
	for <gentoo-commits@lists.gentoo.org>; Sat,  6 Feb 2016 09:58:04 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 63F28D01
	for <gentoo-commits@lists.gentoo.org>; Sat,  6 Feb 2016 09:58:01 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Message-ID: <1454752655.e70104882d328ea04279170b351dc63dc5b6ca3e.mgorny@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-eselect/eselect-python/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-eselect/eselect-python/eselect-python-99999999.ebuild
X-VCS-Directories: app-eselect/eselect-python/
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: e70104882d328ea04279170b351dc63dc5b6ca3e
X-VCS-Branch: master
Date: Sat,  6 Feb 2016 09:58:01 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 57d2369c-bad7-4a55-8c5d-dd202de16d3c
X-Archives-Hash: 2dc5207691aa5a858463608c5df07e5a

commit:     e70104882d328ea04279170b351dc63dc5b6ca3e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  6 09:33:11 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb  6 09:57:35 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7010488

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.

 app-eselect/eselect-python/eselect-python-99999999.ebuild | 8 +++-----
 1 file 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 f9b8c65..52eb0ce 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
 }