commit: ac185cf15ec0c3276511786fffc871c64c81312c
Author: Aaron W. Swenson <aaron <AT> grandmasfridge <DOT> org>
AuthorDate: Sun Jan 14 16:37:23 2018 +0000
Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
CommitDate: Sun Jan 14 16:37:23 2018 +0000
URL:
https://gitweb.gentoo.org/proj/postgresql/eselect.git/commit/?id=ac185cf1
Die if we can’t remove badsym
If badsym can’t be removed, it’ll gum up the works later when trying
to create links, especially since they don’t point anywhere.
postgresql.eselect | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/postgresql.eselect b/postgresql.eselect
index 84a6e0d..099cbda 100644
--- a/postgresql.eselect
+++ b/postgresql.eselect
@@ -389,7 +389,8 @@ do_update() {
for badsym in $(find "${USR_PATH}"/include/postgresql-* -type l \
-exec test ! -e {} \; -print)
do
- rm "${badsym}"
+ # If $badsym can't be removed, we're gonna have a bad time
+ rm "${badsym}" || die -q "Manual rm required: ${badsym}"
done
## End Antiquity Clean Up