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

Commit e272af01 authored by Karl Goetz's avatar Karl Goetz

Commenting the source tree.

parent 02ddce8c
......@@ -20,17 +20,23 @@
set -ex
. config
# Create our working directories if they don't exist
[ ! -d $MIRRORLOCAL/dists/ ] && mkdir -p $MIRRORLOCAL/dists/
[ ! -d $WORKINGDIR/dists-download/ ] && mkdir -p $WORKINGDIR/dists-download/
# For each of the dists we target, download the packages files.
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
# Sync the dists files into place.
rsync -a $WORKINGDIR/dists-download/* $MIRRORLOCAL/dists/
# Extract the lists so awk can handle them
find $MIRRORLOCAL/dists/ -name Packages.gz -exec gunzip -f {} \;
find $MIRRORLOCAL/dists/ -name Sources.gz -exec gunzip -f {} \;
# Tidy up.
rm -rf $WORKINGDIR/dists-download
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