From ac185cf15ec0c3276511786fffc871c64c81312c Mon Sep 17 00:00:00 2001 From: "Aaron W. Swenson" Date: Sun, 14 Jan 2018 11:37:23 -0500 Subject: Die if we can’t remove badsym MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 -- cgit v1.2.3-65-gdbad