aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--postgresql.eselect10
1 files changed, 10 insertions, 0 deletions
diff --git a/postgresql.eselect b/postgresql.eselect
index 5c90b4b..51d7f50 100644
--- a/postgresql.eselect
+++ b/postgresql.eselect
@@ -382,6 +382,16 @@ do_update() {
echo "It should be safe for you to remove '${etc_path}'"
fi
fi
+
+ # 2.1 would make some bad symlinks where it shouldn't have. We
+ # attempt to clean them up here.
+ local badsym
+ for badsym in $(find "${USR_PATH}"/include/postgresql-* -type l \
+ -exec test ! -e {} \; -print)
+ do
+ rm "${badsym}"
+ done
+
## End Antiquity Clean Up
local active_slot=$(active_slot)