Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Tue, 29 Jun 2021 06:05:10
Message-Id: 1624946698.74e79e846a151164fdf458881d83addd51337795.mgorny@gentoo
1 commit: 74e79e846a151164fdf458881d83addd51337795
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 20 13:13:01 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 29 06:04:58 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74e79e84
7
8 python-utils-r1.eclass: Remove _python_ln_rel
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 eclass/python-utils-r1.eclass | 40 ----------------------------------------
13 1 file changed, 40 deletions(-)
14
15 diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
16 index 7022d3b7d88..7488802332f 100644
17 --- a/eclass/python-utils-r1.eclass
18 +++ b/eclass/python-utils-r1.eclass
19 @@ -549,46 +549,6 @@ python_get_scriptdir() {
20 echo "${PYTHON_SCRIPTDIR}"
21 }
22
23 -# @FUNCTION: _python_ln_rel
24 -# @USAGE: <from> <to>
25 -# @INTERNAL
26 -# @DESCRIPTION:
27 -# Create a relative symlink.
28 -_python_ln_rel() {
29 - debug-print-function ${FUNCNAME} "${@}"
30 -
31 - local target=${1}
32 - local symname=${2}
33 -
34 - local tgpath=${target%/*}/
35 - local sympath=${symname%/*}/
36 - local rel_target=
37 -
38 - while [[ ${sympath} ]]; do
39 - local tgseg= symseg=
40 -
41 - while [[ ! ${tgseg} && ${tgpath} ]]; do
42 - tgseg=${tgpath%%/*}
43 - tgpath=${tgpath#${tgseg}/}
44 - done
45 -
46 - while [[ ! ${symseg} && ${sympath} ]]; do
47 - symseg=${sympath%%/*}
48 - sympath=${sympath#${symseg}/}
49 - done
50 -
51 - if [[ ${tgseg} != ${symseg} ]]; then
52 - rel_target=../${rel_target}${tgseg:+${tgseg}/}
53 - fi
54 - done
55 - rel_target+=${tgpath}${target##*/}
56 -
57 - debug-print "${FUNCNAME}: ${symname} -> ${target}"
58 - debug-print "${FUNCNAME}: rel_target = ${rel_target}"
59 -
60 - ln -fs "${rel_target}" "${symname}"
61 -}
62 -
63 # @FUNCTION: python_optimize
64 # @USAGE: [<directory>...]
65 # @DESCRIPTION: