svn commit: r550291 - head/Mk

Mateusz Piotrowski 0mp at FreeBSD.org
Sun Sep 27 17:46:40 UTC 2020


Author: 0mp
Date: Sun Sep 27 17:46:39 2020
New Revision: 550291
URL: https://svnweb.freebsd.org/changeset/ports/550291

Log:
  Print the name of the problematic archive on failed extraction
  
  It is useful when working with a port with a large number of distfiles.
  In case one of them is failing to extract, the framework would print out
  its name to ease debugging.
  
  Approved by:	portmgr
  Differential Revision:	https://reviews.freebsd.org/D25178

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Sun Sep 27 17:29:16 2020	(r550290)
+++ head/Mk/bsd.port.mk	Sun Sep 27 17:46:39 2020	(r550291)
@@ -3160,6 +3160,7 @@ do-extract: ${EXTRACT_WRKDIR}
 	@for file in ${EXTRACT_ONLY}; do \
 		if ! (cd ${EXTRACT_WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS});\
 		then \
+			${ECHO_MSG} "===>  Failed to extract \"${_DISTDIR}/$$file\"."; \
 			exit 1; \
 		fi; \
 	done


More information about the svn-ports-all mailing list