summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2017-05-19 10:18:05 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2017-05-19 10:18:05 -0400
commit48d3ec37b7cad46148b8b32d9294c505d2e4614a (patch)
tree73c6679e1cee55233aa3bc70b6d96ba301a81986
parentChange to the proper directory level for tar (diff)
parentAdd support for FEATURES="noman" (diff)
downloadeselect-48d3ec37b7cad46148b8b32d9294c505d2e4614a.tar.gz
eselect-48d3ec37b7cad46148b8b32d9294c505d2e4614a.tar.bz2
eselect-48d3ec37b7cad46148b8b32d9294c505d2e4614a.zip
Merge branch 'bug-618294'
-rw-r--r--postgresql.eselect6
1 files changed, 5 insertions, 1 deletions
diff --git a/postgresql.eselect b/postgresql.eselect
index d7229e5..db669cc 100644
--- a/postgresql.eselect
+++ b/postgresql.eselect
@@ -256,7 +256,11 @@ do_set() {
local mandir mansec
for mandir in "${USR_PATH}"/share/postgresql-${slot}/man/man{1,3,7} ; do
mansec=$(basename "${mandir}")
- linker "${mandir}" "" "${USR_PATH}/share/man/${mansec}"
+ # Because the user could have FEATURES="noman", check the directory
+ # exists before using it. (https://bugs.gentoo.org/618294)
+ if [[ -d ${USR_PATH}/share/man/${mansec} ]] ; then
+ linker "${mandir}" "" "${USR_PATH}/share/man/${mansec}"
+ fi
done
# Default share path - use a relative link here by just specifying the