diff options
author | Oleg Safiullin <form@cvs.openbsd.org> | 1998-10-05 05:13:35 +0000 |
---|---|---|
committer | Oleg Safiullin <form@cvs.openbsd.org> | 1998-10-05 05:13:35 +0000 |
commit | 2d8c1ac4042ff910233ee41c16e286a1b25dd32d (patch) | |
tree | 78b7f996c80293fb8ae65ba26fb3565b22f5f712 | |
parent | 7dc47b08c8935b36c594692788aa758c646b2ce6 (diff) |
check write permissions to ${DISTDIR} before trying to fetch distfiles.
-rw-r--r-- | share/mk/bsd.port.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk index ebcfee54b46..c77599821f1 100644 --- a/share/mk/bsd.port.mk +++ b/share/mk/bsd.port.mk @@ -1,6 +1,6 @@ #-*- mode: Fundamental; tab-width: 4; -*- # ex:ts=4 -# $OpenBSD: bsd.port.mk,v 1.45 1998/09/08 05:51:06 marc Exp $ +# $OpenBSD: bsd.port.mk,v 1.46 1998/10/05 05:13:34 form Exp $ # # bsd.port.mk - 940820 Jordan K. Hubbard. # This file is in the public domain. @@ -1111,6 +1111,10 @@ do-fetch: fi ; \ fi ; \ ${ECHO_MSG} ">> $$file doesn't seem to exist on this system."; \ + if [ ! -w ${_DISTDIR}/. ]; then \ + ${ECHO_MSG} ">> Can't download to ${_DISTDIR} (permission denied?)."; \ + exit 1; \ + fi; \ for site in ${MASTER_SITES}; do \ ${ECHO_MSG} ">> Attempting to fetch from $${site}."; \ if ${FETCH_CMD} ${FETCH_BEFORE_ARGS} $${site}$${file} ${FETCH_AFTER_ARGS}; then \ |