commit: ba6b5e21ec7a85eb7521d0ae5c705ed791045104
Author: Aaron W. Swenson <aaron <AT> grandmasfridge <DOT> org>
AuthorDate: Sun Jan 14 16:43:18 2018 +0000
Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
CommitDate: Sun Jan 14 16:43:18 2018 +0000
URL:
https://gitweb.gentoo.org/proj/postgresql/eselect.git/commit/?id=ba6b5e21
Rename is_slot_link to is_active_slot_link
postgresql.eselect | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/postgresql.eselect b/postgresql.eselect
index 18b411b..f648956 100644
--- a/postgresql.eselect
+++ b/postgresql.eselect
@@ -285,7 +285,7 @@ do_unset() {
# Get the file path that the link is pointing to. If it has the string
# "postgresql-${slot}" somewhere in it, then it's a link that this
module is
# handling.
- is_slot_link() {
+ is_active_slot_link() {
if [[ $(canonicalise -m "$1") == *postgresql-${slot}* ]] ; then
return 0 # yes
else
@@ -319,7 +319,7 @@ do_unset() {
for path in "${paths[@]}" ; do
# If $path is a link that belongs to the active slot, it can be
removed
# without invoking find.
- if [[ -h "${path}" ]] && is_slot_link "${path}" ; then
+ if [[ -h "${path}" ]] && is_active_slot_link "${path}" ; then
rm "${path}" || write_warning_msg "Couldn't remove:
${path}"
continue
fi
@@ -331,7 +331,7 @@ do_unset() {
[[ ${l} == ${USR_PATH}/bin/*${slot/.} ]] && continue
[[ ${l} == ${USR_PATH}/share/man/man?/*${slot/.}* ]] &&
continue
- if is_slot_link "${l}" ; then
+ if is_active_slot_link "${l}" ; then
rm "${l}" || write_warning_msg "Couldn't
remove: ${l}"
fi
done