Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Sep 2020 17:46:39 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r550291 - head/Mk
Message-ID:  <202009271746.08RHkdZ9071389@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009271746.08RHkdZ9071389>