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.
13 # Normally, quick-fedora-mirror is used to mirror multiple modules,
14 # and wants DESTD to point at the root. However, we're using it for
15 # single modules, and it seems to choke on the symlink farm.
16 # Setting DESTD to the module location and forcing telling qfm to
17 # put the module in `.`.
19 DESTD="${MIRRORDIR}/epel"
21 TIMEFILE="${MIRRORDIR}/.locks/fedora-epel.timefile"
22 QFM="./tools/fedora/quick-fedora-mirror"
24 if ! [ -x "${QFM}" ]; then
25 # It is expected that this script is sourced by fetch-hudson
26 # and that cwd is the workspace where the root of this repository
28 echo "Could not find quick-fedora-mirror."
35 TMPDIR=$(mktemp -d /tmp/fedora-epel.XXXXXX) || die "Unable to mktemp"
36 exittrap() { rm -rf "${TMPDIR}"; }
38 CONF="${TMPDIR}/qfm.conf"
40 # This will be sourced by qfm, which uses zsh.
41 # Where our mirrors live
43 # State regarding last sync, and also a lockfile for qfm
45 # Upstream mirror that contains MASTERMODULE
47 MASTERMODULE=${MASTERMODULE}
48 PREBITFLIP=${PREBITFLIP}
49 # Which module to sync
51 # Map from module to location; which we're forcing to .
52 MODULEMAPPING=(${MODULE} .)
57 "${QFM}" --config "${CONF}"