aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron W. Swenson <titanofold@gentoo.org>2011-04-22 06:06:51 -0400
committerAaron W. Swenson <titanofold@gentoo.org>2011-04-22 06:06:51 -0400
commitb21473d4a4983c74bee04f883f7c199cf01b3aef (patch)
treef89f2fc7a04cad9658f873f96b166a1d4fb3f7f2
parentThis time with the proper regex. (diff)
downloadeselect-b21473d4a4983c74bee04f883f7c199cf01b3aef.tar.gz
eselect-b21473d4a4983c74bee04f883f7c199cf01b3aef.tar.bz2
eselect-b21473d4a4983c74bee04f883f7c199cf01b3aef.zip
Fixes bug 364257
-rw-r--r--postgresql.eselect9
1 files changed, 7 insertions, 2 deletions
diff --git a/postgresql.eselect b/postgresql.eselect
index 8dfe284..55c970d 100644
--- a/postgresql.eselect
+++ b/postgresql.eselect
@@ -47,8 +47,13 @@ linker() {
local target_dir=$3
local suffix=$4
local link_source
+ local findings
+
+ set -f
+ findings=$(find "${source_dir}" -maxdepth 1 -mindepth 1 ${pattern})
+ set +f
- for link_source in $(find "${source_dir}" -maxdepth 1 -mindepth 1 ${pattern}) ; do
+ for link_source in ${findings} ; do
local link_target="${target_dir%/}/$(basename ${link_source})${suffix}"
# For good measure, remove target before creating the symlink
@@ -194,7 +199,7 @@ do_set() {
echo "${B_PATH}/${x}/postgresql" >> "${E_PATH}"/active.links
# Linker works for files
linker "${B_PATH}/${x}/postgresql-${SLOT}/${x}" \
- "-name lib*" "${B_PATH}/${x}"
+ '-name lib*' "${B_PATH}/${x}"
fi
done