3 # mirrors.mit.edu is on the IP ACL for fedora-buffet0 here
4 # so we'll use it. Adjust these values if switching upstreams.
5 RSYNCSOURCE=rsync://download-i2.fedoraproject.org
6 MASTERMODULE=fedora-buffet0
9 # The remote module we want to sync from fedora-buffet[0].
10 # Some call it epel, others call it fedora-epel.
12 # The local name for it.
15 TIMEFILE="${MIRRORDIR}/.locks/fedora-epel.timefile"
16 QFM="./tools/fedora/quick-fedora-mirror"
18 if ! [ -x "${QFM}" ]; then
19 # It is expected that this script is sourced by fetch-hudson
20 # and that cwd is the workspace where the root of this repository
22 echo "Could not find quick-fedora-mirror."
29 TMPDIR=$(mktemp -d /tmp/fedora-epel.XXXXXX) || die "Unable to mktemp"
30 exittrap() { rm -rf "${TMPDIR}"; }
32 CONF="${TMPDIR}/qfm.conf"
34 # This will be sourced by qfm, which uses zsh.
35 # Where our mirrors live
37 # State regarding last sync, and also a lockfile for qfm
39 # Upstream mirror that contains MASTERMODULE
41 MASTERMODULE=${MASTERMODULE}
42 PREBITFLIP=${PREBITFLIP}
43 # Which module to sync
45 # Map from module to location in DESTD
46 MODULEMAPPING=(${MODULE} ${MODULEDIR})
51 "${QFM}" --config "${CONF}"