svn commit: r419840 - head/Mk/Scripts

Mathieu Arnold mat at FreeBSD.org
Mon Aug 8 12:57:35 UTC 2016


Author: mat
Date: Mon Aug  8 12:57:34 2016
New Revision: 419840
URL: https://svnweb.freebsd.org/changeset/ports/419840

Log:
  Only try to create DISTDIR if it does not exist already.
  
  It turns out, some people, instead of setting DISTDIR, replace it with a
  symlink pointing to where DISTDIR should be pointing.
  
  And mkdir -p <symlink> fails.
  
  PR:		211623
  Reported by:	Harald Schmalzbauer
  Sponsored by:	Absolight

Modified:
  head/Mk/Scripts/do-fetch.sh   (contents, props changed)

Modified: head/Mk/Scripts/do-fetch.sh
==============================================================================
--- head/Mk/Scripts/do-fetch.sh	Mon Aug  8 12:30:30 2016	(r419839)
+++ head/Mk/Scripts/do-fetch.sh	Mon Aug  8 12:57:34 2016	(r419840)
@@ -17,7 +17,9 @@ validate_env dp_DEVELOPER dp_DISABLE_SIZ
 
 set -u
 
-mkdir -p "${dp_DISTDIR}"
+if [ ! -d "${dp_DISTDIR}" ]; then
+	mkdir -p "${dp_DISTDIR}"
+fi
 cd "${dp_DISTDIR}"
 
 for _file in "${@}"; do


More information about the svn-ports-all mailing list