Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 May 2016 08:02:28 +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: r416087 - head/Mk/Scripts
Message-ID:  <201605290802.u4T82Slx042299@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Sun May 29 08:02:28 2016
New Revision: 416087
URL: https://svnweb.freebsd.org/changeset/ports/416087

Log:
  Fix fetch-list and fetch-url-list-int when DISTDIR is not writable.
  
  PR:		209820
  Reported by:	amdmi3
  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	Sun May 29 04:49:44 2016	(r416086)
+++ head/Mk/Scripts/do-fetch.sh	Sun May 29 08:02:28 2016	(r416087)
@@ -65,12 +65,12 @@ for _file in "${@}"; do
 		case ${dp_TARGET} in
 		do-fetch|makesum)
 			${dp_ECHO_MSG} "=> $file doesn't seem to exist in ${dp_DISTDIR}."
+			if [ ! -w "${dp_DISTDIR}" ]; then
+				${dp_ECHO_MSG} "=> ${dp_DISTDIR} is not writable by you; cannot fetch."
+				exit 1
+			fi
 			;;
 		esac
-		if [ ! -w "${dp_DISTDIR}" ]; then
-			${dp_ECHO_MSG} "=> ${dp_DISTDIR} is not writable by you; cannot fetch."
-			exit 1
-		fi
 		if [ -n "$select" ] ; then
 			__MASTER_SITES_TMP=
 			for group in $select; do



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