From owner-svn-ports-all@freebsd.org Mon Aug 8 12:57:35 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8EA6FBA9F35; Mon, 8 Aug 2016 12:57:35 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5FEDC1899; Mon, 8 Aug 2016 12:57:35 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u78CvYRW074762; Mon, 8 Aug 2016 12:57:34 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u78CvYO2074761; Mon, 8 Aug 2016 12:57:34 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201608081257.u78CvYO2074761@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Mon, 8 Aug 2016 12:57:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r419840 - head/Mk/Scripts X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Aug 2016 12:57:35 -0000 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 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