Gentoo Archives: gentoo-commits

From: Aaron Swenson <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pgsql-patches:eselect commit in: /
Date: Fri, 01 Apr 2011 11:49:18
Message-Id: 0bb7d06bb13db7b063004bba9bdc8cac53ebb3df.titanofold@gentoo
1 commit: 0bb7d06bb13db7b063004bba9bdc8cac53ebb3df
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 1 11:48:17 2011 +0000
4 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 1 11:48:17 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pgsql-patches.git;a=commit;h=0bb7d06b
7
8 Fixed bitness test so that a false positive doesn't happen.
9 Remove another set of quotes within [[ ]].
10
11 ---
12 postgresql.eselect | 6 +++---
13 1 files changed, 3 insertions(+), 3 deletions(-)
14
15 diff --git a/postgresql.eselect b/postgresql.eselect
16 index 84e1167..07b5383 100644
17 --- a/postgresql.eselect
18 +++ b/postgresql.eselect
19 @@ -25,10 +25,10 @@ active_slot() {
20 lib_dir() {
21 local lib_list=$(list_libdirs)
22 if [[ ${lib_list} =~ .*lib64.* && \
23 - $(ls -d ${B_PATH}/lib64/postgresql-*/lib) != "" ]] ; then
24 + -n $(ls -d ${B_PATH}/lib64/postgresql-*/lib 2> /dev/null) ]] ; then
25 echo "lib64"
26 elif [[ ${lib_list} =~ .*lib32.* && \
27 - $(ls -d ${B_PATH}/lib32/postgresql-*/lib) != "" ]] ; then
28 + -n $(ls -d ${B_PATH}/lib32/postgresql-*/lib 2> /dev/null) ]] ; then
29 echo "lib32"
30 else
31 echo "lib"
32 @@ -113,7 +113,7 @@ do_list() {
33 esac
34 done
35
36 - [[ -z "${postgres_ebuilds}" ]] && write_warning_msg "No slots available."
37 + [[ -z ${postgres_ebuilds} ]] && write_warning_msg "No slots available."
38 fi
39 }