public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrick McLean" <chutzpah@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/eselect-python:master commit in: /
Date: Sun, 19 Jul 2020 20:20:58 +0000 (UTC)	[thread overview]
Message-ID: <1595187934.e1e4f5df30ab46a3787f4cdfb4a6092c2a3544d2.chutzpah@gentoo> (raw)

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


             reply	other threads:[~2020-07-19 20:21 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-19 20:20 Patrick McLean [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
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:29 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=1595187934.e1e4f5df30ab46a3787f4cdfb4a6092c2a3544d2.chutzpah@gentoo \
    --to=chutzpah@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