We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 02ddce8c authored by Karl Goetz's avatar Karl Goetz

Support multiple dists in one run.

Previously I'd overlooked that we might (cough) want -security and or
-updates and -backports. This patch introduces the same sort of for loop
we use all through the builder code to handle this case.

I adjusted the syncing rsync at the same time - this may need to be
tweaked.
parent a3799470
......@@ -23,10 +23,12 @@ set -ex
[ ! -d $MIRRORLOCAL/dists/ ] && mkdir -p $MIRRORLOCAL/dists/
[ ! -d $WORKINGDIR/dists-download/ ] && mkdir -p $WORKINGDIR/dists-download/
wget -q -c -m -np -nH --cut-dirs=3 -A "Packages.gz" -A "Sources.gz" -P$WORKINGDIR/dists-download \
$MIRROR/dists/$MIRRORDIST/
for dist in '' -security $EXTRAS; do
wget -q -c -m -np -nH --cut-dirs=3 -A "Packages.gz" -A "Sources.gz" -P$WORKINGDIR/dists-download \
$MIRROR/dists/$MIRRORDIST$dist/
done
rsync -a $WORKINGDIR/dists-download/$MIRRORDIST $MIRRORLOCAL/dists/
rsync -a $WORKINGDIR/dists-download/* $MIRRORLOCAL/dists/
find $MIRRORLOCAL/dists/ -name Packages.gz -exec gunzip -f {} \;
find $MIRRORLOCAL/dists/ -name Sources.gz -exec gunzip -f {} \;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment