diff options
author | Joerg Jaspert <joerg@debian.org> | 2008-10-30 22:33:59 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2008-10-30 22:33:59 +0100 |
commit | 4f0e46fa9307e00c22ee5b5ddc287286834e0056 (patch) | |
tree | 1638ab4c4ee6697eb7a79f33f5c56b3055405eae /etc | |
parent | 66d13cffd124e439ef443cf17a40936c90098fe2 (diff) |
runmirrors
correctly set PUSHLOCKS
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'etc')
-rw-r--r-- | etc/common | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -147,3 +147,14 @@ hook () { return 0 fi } + +# Return the list of 2-stage mirrors. +get2stage() { + egrep '^staged' "${MIRRORS}" | { + while read MTYPE MLNAME MHOSTNAME MUSER MPROTO MKEYFILE; do + PUSHLOCKS="${LOCKDIR}/${MLNAME}.stage1 ${PUSHLOCKS}" + done + echo "$PUSHLOCKS" + } +} + |