From ca1740ee73f11da9a5e831aa706e62df3f13bdd6 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 6 May 2011 01:39:16 -0700 Subject: [PATCH] make upgrade - Allow removal of protected files * chflags -Rf noschg from the files to be deleted list before attempting to rm -rf . * Fixes the proper removal of obsolete or moved libraries. --- etc/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/Makefile b/etc/Makefile index 63029943b7..2b97caaacf 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -98,6 +98,7 @@ remove-obsolete-files: @for item in ${TO_REMOVE}; do \ if [ -e ${DESTDIR}$${item} -o -L ${DESTDIR}$${item} ]; then \ echo "${DESTDIR}$${item}"; \ + chflags -Rf noschg "${DESTDIR}$${item}"; \ rm -rf "${DESTDIR}$${item}"; \ fi; \ done -- 2.41.0