summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2020-07-19 12:26:39 -0700
committerPatrick McLean <chutzpah@gentoo.org>2020-07-19 12:45:34 -0700
commite1e4f5df30ab46a3787f4cdfb4a6092c2a3544d2 (patch)
tree80c3761ada25f9fc78e0fbdad8a7cb540946bd3d
parentBump version to 20190417 (diff)
downloadeselect-python-e1e4f5df30ab46a3787f4cdfb4a6092c2a3544d2.tar.gz
eselect-python-e1e4f5df30ab46a3787f4cdfb4a6092c2a3544d2.tar.bz2
eselect-python-e1e4f5df30ab46a3787f4cdfb4a6092c2a3544d2.zip
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@gentoo.org>
-rw-r--r--python.eselect.in19
1 files 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