From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/eselect-python:master commit in: /
Date: Sat, 6 Feb 2016 09:29:44 +0000 (UTC) [thread overview]
Message-ID: <1454750970.9cd3e07fc522120bcfe57353e30d185926da0891.mgorny@gentoo> (raw)
commit: 9cd3e07fc522120bcfe57353e30d185926da0891
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 6 09:29:30 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 6 09:29:30 2016 +0000
URL: https://gitweb.gentoo.org/proj/eselect-python.git/commit/?id=9cd3e07f
show: Fix --pref-only
python.eselect.in | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/python.eselect.in b/python.eselect.in
index bbe024f..2bf6e30 100644
--- a/python.eselect.in
+++ b/python.eselect.in
@@ -216,14 +216,14 @@ do_show() {
done
local preferred=( $(get_preferred_pythons ${filter}) )
- local installed=()
- if [[ ! ${pref_only} ]]; then
- installed=( $(get_installed_pythons ${filter}) )
- fi
+ local installed=( $(get_installed_pythons ${filter}) )
+ local all=( "${preferred[@]}" )
# preferred are preferred, but fall back to anything
+ [[ ${pref_only} ]] || all+=( "${installed[@]}" )
+
local i
- for i in "${preferred[@]}" "${installed[@]}"; do
+ for i in "${all[@]}"; do
# skip if not installed
has "${i}" "${installed[@]}" || continue
interpreter=${i}
next reply other threads:[~2016-02-06 9:29 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-06 9:29 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-07-19 20:20 [gentoo-commits] proj/eselect-python:master commit in: / Patrick McLean
2020-07-19 20:20 Patrick McLean
2019-04-17 12:26 Michał Górny
2019-04-17 10:47 Michał Górny
2017-12-04 17:32 Michał Górny
2017-12-03 13:24 Michał Górny
2017-12-03 13:23 Michał Górny
2017-12-03 12:20 Michał Górny
2016-08-03 15:44 Mike Gilbert
2016-05-16 18:04 Michał Górny
2016-05-16 16:47 Michał Górny
2016-05-16 16:38 Michał Górny
2016-05-16 16:38 Michał Górny
2016-02-28 17:03 Michał Górny
2016-02-28 17:03 Michał Górny
2016-02-23 22:16 Michał Górny
2016-02-22 21:41 Michał Górny
2016-02-22 21:41 Michał Górny
2016-02-22 21:41 Michał Górny
2016-02-06 21:30 Michał Górny
2016-02-06 21:30 Michał Górny
2016-02-06 21:30 Michał Górny
2016-02-06 21:30 Michał Górny
2016-02-06 9:50 Michał Górny
2016-02-06 9:49 Michał Górny
2016-02-06 9:00 Michał Górny
2016-02-05 20:36 [gentoo-commits] proj/eselect-python:pyexec-2.3 " Michał Górny
2016-02-06 9:00 ` [gentoo-commits] proj/eselect-python:master " Michał Górny
2016-02-05 20:36 [gentoo-commits] proj/eselect-python:pyexec-2.3 " Michał Górny
2016-02-06 9:00 ` [gentoo-commits] proj/eselect-python:master " Michał Górny
2015-11-17 18:43 Michał Górny
2015-11-17 18:36 Michał Górny
2015-11-17 18:36 Michał Górny
2015-11-17 18:36 Michał Górny
2015-11-12 16:53 [gentoo-commits] proj/eselect-python:mgornys-hackery " Michał Górny
2015-11-17 18:36 ` [gentoo-commits] proj/eselect-python:master " Michał Górny
2014-01-25 17:04 Mike Gilbert
2014-01-19 8:33 Mike Gilbert
2014-01-19 1:57 Mike Gilbert
2014-01-19 1:57 Mike Gilbert
2013-12-09 18:52 Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1454750970.9cd3e07fc522120bcfe57353e30d185926da0891.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox