summaryrefslogtreecommitdiff
path: root/etc/common
diff options
context:
space:
mode:
Diffstat (limited to 'etc/common')
-rw-r--r--etc/common11
1 files changed, 11 insertions, 0 deletions
diff --git a/etc/common b/etc/common
index 90bf67a..984d695 100644
--- a/etc/common
+++ b/etc/common
@@ -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"
+ }
+}
+