Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
Date: Sun, 08 Mar 2020 13:25:00
Message-Id: 1583673889.42163237b57c56de9a24fe6549e46c805fab2bb3.mgorny@gentoo
1 commit: 42163237b57c56de9a24fe6549e46c805fab2bb3
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 8 13:24:17 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 8 13:24:49 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=42163237
7
8 plugin/gentoo-common.vim: Stop suggesting py2 in newebuild
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 plugin/gentoo-common.vim | 9 ++-------
13 1 file changed, 2 insertions(+), 7 deletions(-)
14
15 diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
16 index fe00202..65a8691 100644
17 --- a/plugin/gentoo-common.vim
18 +++ b/plugin/gentoo-common.vim
19 @@ -57,19 +57,14 @@ fun! GentooGetPythonTargets()
20 if exists("g:gentoopythontargets") && g:gentoopythontargets != ""
21 return g:gentoopythontargets
22 else
23 - let l:py2 = system("eselect python show --python2")
24 - let l:py2 = substitute(l:py2, "\n", "", "g")
25 let l:py3 = system("eselect python show --python3")
26 let l:py3 = substitute(l:py3, "\n", "", "g")
27
28 - if l:py2 == ""
29 - let l:py2 = "python2.7"
30 - endif
31 if l:py3 == ""
32 - let l:py3 = "python3.4"
33 + let l:py3 = "python3.8"
34 endif
35
36 - let l:pythons = substitute(l:py2 . " " . l:py3, "[.]", "_", "g")
37 + let l:pythons = substitute(l:py3, "[.]", "_", "g")
38
39 let g:gentoopythontargets = l:pythons
40 return g:gentoopythontargets