commit: e1e4f5df30ab46a3787f4cdfb4a6092c2a3544d2
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Sun Jul 19 19:26:39 2020 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Sun Jul 19 19:45:34 2020 +0000
URL:
https://gitweb.gentoo.org/proj/eselect-python.git/commit/?id=e1e4f5df
Handle zstd man pages, use .so format rather than a symlink
Handling removing .zst{,d} compressed man pages. Move to using .so reference
rather than a symlink to have "man python" point to the right implementation.
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
python.eselect.in | 19 +++----------------
1 file changed, 3 insertions(+), 16 deletions(-)
diff --git a/python.eselect.in b/python.eselect.in
index 98b8cc9..5fa0fb1 100644
--- a/python.eselect.in
+++ b/python.eselect.in
@@ -111,23 +111,10 @@ write_preferences() {
# Set a man page symlink
set_man_symlink() {
- local target=${1} x suffix
-
- rm -f "${MAN_PATH}"/python.1{,.gz,.bz2,.lzma,.xz,.lz} || die
-
- for x in .1{,.gz,.bz2,.lzma,.xz,.lz}; do
- if [[ -e "${MAN_PATH}/${target}${x}" ]]; then
- suffix=${x}
- break
- fi
- done
-
- if [[ ! ${suffix} ]]; then
- echo "Couldn't find a man page for ${target}; skipping." 1>&2
- return 1
- fi
+ local target=${1}
- ln -nfs "${target}${suffix}" "${MAN_PATH}/python${suffix}" || die
+ rm -f "${MAN_PATH}"/python.1{,.{gz,bz2,lzma,xz,lz,zst{,d}}} || die
+ echo ".so ${target}.1" > "${MAN_PATH}"/python.1 || die
}
# Set OSX framework symlinks