Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Aug 2016 12:57:34 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r419840 - head/Mk/Scripts
Message-ID:  <201608081257.u78CvYO2074761@repo.freebsd.org>

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



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