diff options
Diffstat (limited to 'postgresql.eselect')
-rw-r--r-- | postgresql.eselect | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/postgresql.eselect b/postgresql.eselect index 0cc2fdf..d42fda9 100644 --- a/postgresql.eselect +++ b/postgresql.eselect @@ -7,7 +7,7 @@ inherit config multilib DESCRIPTION="Manage active PostgreSQL client applications and libraries" MAINTAINER="pgsql-bugs@gentoo.org" SVN_DATE='$Date: $' -VERSION="1.0.6" +VERSION="1.0.8" # Global Data B_PATH="${EROOT%/}/usr" @@ -82,8 +82,8 @@ unlinker() { # Find all available slots in the preferred lib_dir() and return them. get_slots() { echo $(find "${B_PATH}/$(lib_dir)" -maxdepth 1 -type d \ - -regex '.*postgresql-[0-9]+\.[0-9]+' -printf '%f\n' | \ - sed -re 's#^.+-##' | sort -n) + -regex '.*postgresql-[0-9]+\.[0-9]+' | \ + sed -re 's#.*([0-9]+\.[0-9]+)$#\1#' | sort -n) } ### List Action ### @@ -184,7 +184,7 @@ do_set() { echo "${targets[$i]}" >> "${E_PATH}"/active.links done - # Link modules to /usr/lib{,lib32,lib64}/ + # Link modules to /usr/lib{,32,64}/ local x for x in $(list_libdirs) ; do if [[ -d ${B_PATH}/${x}/postgresql-${SLOT}/${x} ]] ; then |