summaryrefslogtreecommitdiff
path: root/mk/fetch
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-08-01 15:24:51 +0000
committerjlam <jlam@pkgsrc.org>2007-08-01 15:24:51 +0000
commit13157ce5e2f70c31da7dc1f66e22495eb7c54ccc (patch)
tree1718547db757f0fc7d49decf76fb881ab4eac033 /mk/fetch
parent3f468312f3f30537c10aa8bea6eccd09b305b242 (diff)
downloadpkgsrc-13157ce5e2f70c31da7dc1f66e22495eb7c54ccc.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