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: Tue, 26 Apr 2011 21:46:47
Message-Id: 7f5e7383defb3be8d3a0f0a4278edac585951ec5.titanofold@gentoo
1 commit: 7f5e7383defb3be8d3a0f0a4278edac585951ec5
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Tue Apr 26 11:37:42 2011 +0000
4 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Tue Apr 26 11:37:42 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pgsql-patches.git;a=commit;h=7f5e7383
7
8 Missed a trailing slash.
9
10 ---
11 postgresql.eselect | 2 +-
12 1 files changed, 1 insertions(+), 1 deletions(-)
13
14 diff --git a/postgresql.eselect b/postgresql.eselect
15 index 7ebbfde..1e2e623 100644
16 --- a/postgresql.eselect
17 +++ b/postgresql.eselect
18 @@ -90,7 +90,7 @@ unlinker() {
19 ### Get Slots Function ###
20 # Find all available slots in the preferred lib_dir() and return them.
21 get_slots() {
22 - echo $(find "${B_PATH}/$(lib_dir)" -maxdepth 1 -type d \
23 + echo $(find "${B_PATH}/$(lib_dir)/" -maxdepth 1 -type d \
24 -regex '.*postgresql-[0-9][0-9]*\.[0-9][0-9]*' | \
25 sed -re 's#.*([0-9]+\.[0-9]+)$#\1#' | sort -n)
26 }