1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Do not require root credential for make clean if the stage cookie is not present

Requested by:	sunpoet
This commit is contained in:
Baptiste Daroussin 2013-09-23 16:52:56 +00:00
parent 260fdd7fbb
commit 2f20d741ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328024

View File

@ -4563,7 +4563,7 @@ deinstall-all:
.if !target(do-clean)
do-clean:
.if !defined(NO_STAGE) && ${UID} != 0 && !defined(INSTALL_AS_USER)
.if !defined(NO_STAGE) && ${UID} != 0 && !defined(INSTALL_AS_USER) && exists(${STAGE_COOKIE})
@${ECHO_MSG} "===> Switching to root credentials for '${.TARGET}' target"
@cd ${.CURDIR} && \
${SU_CMD} "${MAKE} ${.TARGET}"