summaryrefslogtreecommitdiff
path: root/mk/fetch
diff options
context:
space:
mode:
authorjlam <jlam>2007-08-01 15:24:51 +0000
committerjlam <jlam>2007-08-01 15:24:51 +0000
commita1273168e4261b8af52403cd8d52de97766974fd (patch)
tree1718547db757f0fc7d49decf76fb881ab4eac033 /mk/fetch
parent22383355098f7be397134723aec76db4363b0fbc (diff)
downloadpkgsrc-a1273168e4261b8af52403cd8d52de97766974fd.tar.gz
Teach mirror-distfiles to use emul-fetch if EMUL_PLATFORMS is defined so
that mirror sites will grab all of the distfiles, not just the ones that are for the native platform.
Diffstat (limited to 'mk/fetch')
-rw-r--r--mk/fetch/fetch.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/fetch/fetch.mk b/mk/fetch/fetch.mk
index 06e3ccc0e68..61f5ec6e2af 100644
--- a/mk/fetch/fetch.mk
+++ b/mk/fetch/fetch.mk
@@ -1,4 +1,4 @@
-# $NetBSD: fetch.mk,v 1.27 2007/07/14 05:51:11 obache Exp $
+# $NetBSD: fetch.mk,v 1.28 2007/08/01 15:24:51 jlam Exp $
_MASTER_SITE_BACKUP= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
_MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
@@ -293,6 +293,8 @@ do-fetch-file: .USE
.if defined(NO_SRC_ON_FTP)
mirror-distfiles:
@${DO_NADA}
+.elif defined(EMUL_PLATFORMS) && !empty(EMUL_PLATFORMS)
+mirror-distfiles: emul-fetch
.else
mirror-distfiles: fetch
.endif