| 1 |
hertzog |
344 |
#!/bin/sh
|
| 2 |
|
|
|
| 3 |
hertzog |
351 |
# Copyright 2002 Raphaƫl Hertzog
|
| 4 |
|
|
# This file is distributed under the terms of the General Public License
|
| 5 |
|
|
# version 2 or (at your option) any later version.
|
| 6 |
|
|
|
| 7 |
hertzog |
692 |
#mirror="http://gluck.debian.org/debian"
|
| 8 |
hertzog |
1602 |
mirror="http://ftp.us.debian.org/debian"
|
| 9 |
|
|
#mirror="http://ftp.debian.org/debian"
|
| 10 |
hertzog |
344 |
|
| 11 |
hertzog |
692 |
umask 002
|
| 12 |
jeroen |
910 |
set -e
|
| 13 |
hertzog |
692 |
|
| 14 |
hertzog |
344 |
if [ -d "../incoming" ]; then
|
| 15 |
|
|
root=$PWD/..
|
| 16 |
|
|
elif [ -d "incoming" ]; then
|
| 17 |
|
|
root=$PWD
|
| 18 |
|
|
else
|
| 19 |
hertzog |
345 |
root=/org/packages.qa.debian.org/www
|
| 20 |
hertzog |
344 |
fi
|
| 21 |
|
|
|
| 22 |
|
|
cd $root/incoming
|
| 23 |
|
|
|
| 24 |
hertzog |
372 |
nice_wget() {
|
| 25 |
|
|
# $1: url
|
| 26 |
|
|
# $2: filename
|
| 27 |
jeroen |
910 |
# For timestamping to work, copy to .new (not link, wget will not break
|
| 28 |
|
|
# the link)
|
| 29 |
jeroen |
911 |
cp -a $2 $2.new || true
|
| 30 |
jeroen |
913 |
# Beware that -N conflicts with -O (#88176, #202911)
|
| 31 |
zack |
1750 |
wget -U pts -q -O $2.new $1 || \
|
| 32 |
jeroen |
910 |
echo "Downloading $1 failed, $2 is stale now"
|
| 33 |
|
|
mv $2.new $2
|
| 34 |
hertzog |
372 |
}
|
| 35 |
|
|
|
| 36 |
hertzog |
344 |
# Download all Sources.gz
|
| 37 |
|
|
for comp in main contrib non-free
|
| 38 |
|
|
do
|
| 39 |
jeroen |
1223 |
for dist in oldstable stable testing unstable experimental
|
| 40 |
hertzog |
344 |
do
|
| 41 |
hertzog |
372 |
nice_wget $mirror/dists/$dist/$comp/source/Sources.gz \
|
| 42 |
|
|
Sources_${dist}_$comp.gz
|
| 43 |
hertzog |
344 |
done
|
| 44 |
hertzog |
372 |
nice_wget $mirror/dists/stable-proposed-updates/$comp/source/Sources.gz \
|
| 45 |
|
|
Sources-spu_$comp.gz
|
| 46 |
|
|
nice_wget $mirror/dists/testing-proposed-updates/$comp/source/Sources.gz \
|
| 47 |
|
|
Sources-tpu_$comp.gz
|
| 48 |
jeroen |
1020 |
nice_wget http://security.debian.org/dists/oldstable/updates/$comp/source/Sources.gz \
|
| 49 |
|
|
Sources-security-oldstable_$comp.gz
|
| 50 |
hertzog |
372 |
nice_wget http://security.debian.org/dists/stable/updates/$comp/source/Sources.gz \
|
| 51 |
|
|
Sources-security-stable_$comp.gz
|
| 52 |
jeroen |
1023 |
#nice_wget http://security.debian.org/dists/testing/updates/$comp/source/Sources.gz \
|
| 53 |
|
|
#Sources-security-testing_$comp.gz
|
| 54 |
hertzog |
1602 |
nice_wget http://volatile.debian.org/debian-volatile/dists/stable/volatile/$comp/source/Sources.gz \
|
| 55 |
hertzog |
1092 |
Sources-volatile_$comp.gz
|
| 56 |
hertzog |
344 |
done
|
| 57 |
|
|
|
| 58 |
|
|
# Download update_excuses.html
|
| 59 |
jeroen |
910 |
nice_wget http://ftp-master.debian.org/testing/update_excuses.html.gz \
|
| 60 |
|
|
update_excuses.html.gz
|
| 61 |
hertzog |
344 |
|
| 62 |
|
|
# Download PTS subscription count
|
| 63 |
jeroen |
936 |
nice_wget http://packages.qa.debian.org/data/pts-subscription-count.txt count.txt
|
| 64 |
hertzog |
344 |
|
| 65 |
jeroen |
947 |
# Download override disparities
|
| 66 |
|
|
nice_wget http://qa.debian.org/data/ftp/override-disparities.unstable \
|
| 67 |
|
|
override-disparities.unstable
|
| 68 |
|
|
nice_wget http://qa.debian.org/data/ftp/override-disparities.experimental \
|
| 69 |
|
|
override-disparities.experimental
|
| 70 |
jeroen |
944 |
|
| 71 |
hertzog |
344 |
# Download bugs summary
|
| 72 |
jeroen |
910 |
nice_wget http://merkel.debian.org/~hertzog/pts/bugs.txt bugs.txt
|
| 73 |
jeroen |
916 |
nice_wget http://qa.debian.org/data/bts/sources sources
|
| 74 |
hertzog |
812 |
# Temporary measure because merkel is fucked
|
| 75 |
jeroen |
913 |
#nice_wget http://www.wolffelaar.nl/~jeroen/pts.bugs.txt bugs.txt
|
| 76 |
jeroen |
905 |
#cp /org/bugs.debian.org/etc/indices/sources ./
|
| 77 |
jeroen |
914 |
cut -f1,3 sources >sources.map.new
|
| 78 |
|
|
touch -r sources sources.map.new
|
| 79 |
|
|
mv sources.map.new sources.map
|
| 80 |
hertzog |
344 |
|
| 81 |
hertzog |
372 |
# Download debcheck lists
|
| 82 |
jeroen |
914 |
DCROOT=http://qa.debian.org/data/debcheck/result
|
| 83 |
|
|
nice_wget $DCROOT/stable/lists/ALL-pkglist debcheck-stable
|
| 84 |
|
|
nice_wget $DCROOT/testing/lists/ALL-pkglist debcheck-testing
|
| 85 |
|
|
nice_wget $DCROOT/unstable/lists/ALL-pkglist debcheck-unstable
|
| 86 |
hertzog |
344 |
|
| 87 |
hertzog |
479 |
# Download the list of packages with debconf templates
|
| 88 |
hertzog |
692 |
# DISABLED until ddtp.debian.org is back up
|
| 89 |
|
|
#nice_wget http://ddtp.debian.org/cgi-bin/debconf_list.cgi debconf-list
|
| 90 |
hertzog |
479 |
|
| 91 |
jeroen |
912 |
# Get wnpp information
|
| 92 |
|
|
nice_wget http://qa.debian.org/data/bts/wnpp_rm wnpp_rm
|
| 93 |
hertzog |
560 |
|
| 94 |
hertzog |
1049 |
# get patches from ubuntu
|
| 95 |
hertzog |
1355 |
nice_wget http://patches.ubuntu.com/PATCHES patches.ubuntu
|
| 96 |
hertzog |
1049 |
|
| 97 |
zack |
1750 |
# download LowThresholdNmu list
|
| 98 |
|
|
nice_wget 'http://wiki.debian.org/LowThresholdNmu?action=raw' \
|
| 99 |
|
|
low_threshold_nmu.txt
|
| 100 |
|
|
|
| 101 |
hertzog |
344 |
# What more ?
|
| 102 |
|
|
|
| 103 |
|
|
# Decompress all files
|
| 104 |
|
|
for file in *.gz; do
|
| 105 |
jeroen |
910 |
gzip -d -c $file > ${file%%.gz}.new
|
| 106 |
|
|
touch -r $file ${file%%.gz}.new
|
| 107 |
|
|
mv ${file%%.gz}.new ${file%%.gz}
|
| 108 |
hertzog |
344 |
done
|
| 109 |
|
|
|
| 110 |
jeroen |
910 |
# vim: ts=8
|