summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-12-01 10:56:31 +0000
committerrillig <rillig@pkgsrc.org>2007-12-01 10:56:31 +0000
commitd493e106157b657f5fd606212d0b1cbb9ee9a46f (patch)
tree3a9b06772bbd87f0ac5fabcf356f77884cbfd98f
parent1d461110f3cd9d7c503003d6d93f67ea6b11bdcf (diff)
downloadpkgsrc-d493e106157b657f5fd606212d0b1cbb9ee9a46f.tar.gz
If a package defines FETCH_MESSAGE, show that instead of the generic
instructions.
-rw-r--r--mk/fetch/fetch.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/fetch/fetch.mk b/mk/fetch/fetch.mk
index 85a698e359a..b248f1fa28b 100644
--- a/mk/fetch/fetch.mk
+++ b/mk/fetch/fetch.mk
@@ -1,4 +1,4 @@
-# $NetBSD: fetch.mk,v 1.30 2007/09/06 20:54:53 joerg Exp $
+# $NetBSD: fetch.mk,v 1.31 2007/12/01 10:56:31 rillig Exp $
_MASTER_SITE_BACKUP= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
_MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
@@ -151,7 +151,7 @@ ${DISTDIR}/${_file_}: fetch-check-interactive do-fetch-file error-check
###
.PHONY: fetch-check-interactive
fetch-check-interactive: .USEBEFORE
-.if !empty(INTERACTIVE_STAGE:Mfetch) && defined(BATCH)
+.if !empty(INTERACTIVE_STAGE:Mfetch) && defined(BATCH) && !defined(FETCH_MESSAGE)
@${TEST} ! -f ${.TARGET} || exit 0; \
${ERROR_MSG} "The fetch stage of this package requires user interaction to download"; \
${ERROR_MSG} "the distfiles. Please fetch the distfiles manually and place them in:"; \