aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-10-17 16:43:09 +0200
committerMichał Górny <mgorny@gentoo.org>2019-10-17 16:43:09 +0200
commit702f9d3fa6db24979daf1208d4e61823f6601b96 (patch)
treebc9883416828a3b79145315f9bc2765e7ca85ba1
parentsync-distfiles: Start propagating new mirror layout (diff)
downloadmastermirror-scripts-702f9d3fa6db24979daf1208d4e61823f6601b96.tar.gz
mastermirror-scripts-702f9d3fa6db24979daf1208d4e61823f6601b96.tar.bz2
mastermirror-scripts-702f9d3fa6db24979daf1208d4e61823f6601b96.zip
Create a INDEX of distfiles20191017T144330Z
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rwxr-xr-xsync-distfiles.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/sync-distfiles.sh b/sync-distfiles.sh
index 41337cb..302fb92 100755
--- a/sync-distfiles.sh
+++ b/sync-distfiles.sh
@@ -57,4 +57,8 @@ python2 /usr/bin/emirrordist \
--layout-conf=/usr/local/bin/mastermirror/layout.conf.new \
--mirror
+( cd ${DATADIR}/distfiles && find [0-9a-f][0-9a-f] -mindepth 1 ) |
+ sort > ${DATADIR}/INDEX.tmp &&
+ mv ${DATADIR}/INDEX.tmp ${DATADIR}/distfiles/INDEX
+
/bin/date -u '+%s' > ${DATADIR}/distfiles/timestamp.mirmon