# The remote module we want to sync from fedora-buffet[0].
# Some call it fedora, others call it fedora-enchilada.
MODULE=fedora
-# The local name for it.
-MODULEDIR=fedora
+
+# Normally, quick-fedora-mirror is used to mirror multiple modules,
+# and wants DESTD to point at the root. However, we're using it for
+# single modules, and it seems to choke on the symlink farm.
+# Setting DESTD to the module location and forcing telling qfm to
+# put the module in `.`.
+
+DESTD="${MIRRORDIR}/fedora"
TIMEFILE="${MIRRORDIR}/.locks/fedora.timefile"
QFM="./tools/fedora/quick-fedora-mirror"
cat >"${CONF}" <<EOF
# This will be sourced by qfm, which uses zsh.
# Where our mirrors live
-DESTD=${MIRRORDIR}
+DESTD=${DESTD}
# State regarding last sync, and also a lockfile for qfm
TIMEFILE=${TIMEFILE}
# Upstream mirror that contains MASTERMODULE
PREBITFLIP=${PREBITFLIP}
# Which module to sync
MODULES=(${MODULE})
-# Map from module to location in DESTD
-MODULEMAPPING=(${MODULE} ${MODULEDIR})
+# Map from module to location; which we're forcing to .
+MODULEMAPPING=(${MODULE} .)
# One -v to rsync
VERBOSE=4
EOF
# The remote module we want to sync from fedora-buffet[0].
# Some call it epel, others call it fedora-epel.
MODULE=epel
-# The local name for it.
-MODULEDIR=epel
+
+# Normally, quick-fedora-mirror is used to mirror multiple modules,
+# and wants DESTD to point at the root. However, we're using it for
+# single modules, and it seems to choke on the symlink farm.
+# Setting DESTD to the module location and forcing telling qfm to
+# put the module in `.`.
+
+DESTD="${MIRRORDIR}/epel"
TIMEFILE="${MIRRORDIR}/.locks/fedora-epel.timefile"
QFM="./tools/fedora/quick-fedora-mirror"
cat >"${CONF}" <<EOF
# This will be sourced by qfm, which uses zsh.
# Where our mirrors live
-DESTD=${MIRRORDIR}
+DESTD=${DESTD}
# State regarding last sync, and also a lockfile for qfm
TIMEFILE=${TIMEFILE}
# Upstream mirror that contains MASTERMODULE
PREBITFLIP=${PREBITFLIP}
# Which module to sync
MODULES=(${MODULE})
-# Map from module to location in DESTD
-MODULEMAPPING=(${MODULE} ${MODULEDIR})
+# Map from module to location; which we're forcing to .
+MODULEMAPPING=(${MODULE} .)
# One -v to rsync
VERBOSE=4
EOF