From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B9670139083 for ; Sun, 3 Dec 2017 12:20:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6F23E0F44; Sun, 3 Dec 2017 12:20:33 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A6DD3E0F44 for ; Sun, 3 Dec 2017 12:20:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 04CF733BF43 for ; Sun, 3 Dec 2017 12:20:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8EA34AD7E for ; Sun, 3 Dec 2017 12:20:30 +0000 (UTC) From: "Michał Górny" 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" Message-ID: <1512303613.c35ddadceeca65d617c3e1254d9c0a96dd9cfb5c.mgorny@gentoo> Subject: [gentoo-commits] proj/eselect-python:master commit in: / X-VCS-Repository: proj/eselect-python X-VCS-Files: python.eselect.in X-VCS-Directories: / X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: c35ddadceeca65d617c3e1254d9c0a96dd9cfb5c X-VCS-Branch: master Date: Sun, 3 Dec 2017 12:20:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5966ea1e-8030-4fd7-928a-0ea00d76773a X-Archives-Hash: d1e3ffefa45d6acca6b50b6a9f541448 commit: c35ddadceeca65d617c3e1254d9c0a96dd9cfb5c Author: Michał Górny gentoo org> AuthorDate: Sun Dec 3 12:17:17 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Dec 3 12:20:13 2017 +0000 URL: https://gitweb.gentoo.org/proj/eselect-python.git/commit/?id=c35ddadc list: Mark uninstalled Pythons as such Bug: https://bugs.gentoo.org/639578 python.eselect.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python.eselect.in b/python.eselect.in index 451529d..bfb126a 100644 --- a/python.eselect.in +++ b/python.eselect.in @@ -280,6 +280,7 @@ do_list() { done local all=( $(get_all_pythons ${filter}) ) + local installed=( $(get_installed_pythons ${filter}) ) local preferred=( $(get_preferred_pythons ${filter}) ) local disabled=( $(get_disabled_pythons) ) @@ -288,6 +289,8 @@ do_list() { for (( i = 0; i < ${#all[@]}; ++i )); do if has "${all[i]}" "${disabled[@]}"; then all[i]=$(highlight_marker "${all[i]}" "$(highlight_warning "(disabled)")") + elif ! has "${all[i]}" "${installed[@]}"; then + all[i]=$(highlight_marker "${all[i]}" "$(highlight_warning "(uninstalled)")") elif ! has "${all[i]}" "${preferred[@]}"; then all[i]=$(highlight_marker "${all[i]}" "(fallback)") fi