/[qa]/trunk/pts/www/bin/update_incoming.sh
ViewVC logotype

Contents of /trunk/pts/www/bin/update_incoming.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 747 - (hide annotations) (download) (as text)
Wed Mar 31 05:24:01 2004 UTC (9 years, 2 months ago) by hertzog
File MIME type: application/x-sh
File size: 2980 byte(s)
- Host BTS stuff on merkel now
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     mirror="http://ftp.debian.org/debian"
9 hertzog 345 nonus="http://non-us.debian.org/debian-non-US"
10 hertzog 344 wgetopt="-t 5 -q -N"
11    
12 hertzog 692 umask 002
13    
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     file=`basename $1`
28     if [ -e "$2" ]; then
29     cp -a $2 $file
30     fi
31     wget $wgetopt $1
32     mv $file $2
33     }
34    
35 hertzog 344 # Download all Sources.gz
36     for comp in main contrib non-free
37     do
38     for dist in stable testing unstable
39     do
40 hertzog 372 nice_wget $mirror/dists/$dist/$comp/source/Sources.gz \
41     Sources_${dist}_$comp.gz
42     nice_wget $nonus/dists/$dist/non-US/$comp/source/Sources.gz \
43     Sources-nonus_${dist}_$comp.gz
44 hertzog 344 done
45 hertzog 372 nice_wget $mirror/project/experimental/$comp/source/Sources.gz \
46     Sources-experimental_$comp.gz
47     nice_wget $mirror/dists/stable-proposed-updates/$comp/source/Sources.gz \
48     Sources-spu_$comp.gz
49     nice_wget $mirror/dists/testing-proposed-updates/$comp/source/Sources.gz \
50     Sources-tpu_$comp.gz
51     nice_wget $nonus/dists/stable-proposed-updates/non-US/$comp/source/Sources.gz \
52     Sources-nonus-spu_$comp.gz
53     nice_wget $nonus/dists/testing-proposed-updates/non-US/$comp/source/Sources.gz \
54     Sources-nonus-tpu_$comp.gz
55     nice_wget http://security.debian.org/dists/stable/updates/$comp/source/Sources.gz \
56     Sources-security-stable_$comp.gz
57     nice_wget http://security.debian.org/dists/testing/updates/$comp/source/Sources.gz \
58     Sources-security-testing_$comp.gz
59 hertzog 344 done
60    
61     # Download update_excuses.html
62     wget $wgetopt http://ftp-master.debian.org/testing/update_excuses.html.gz
63    
64     # Download PTS subscription count
65     wget $wgetopt http://master.debian.org/~hertzog/pts/count.txt
66    
67     # Download bugs summary
68 hertzog 747 wget $wgetopt http://merkel.debian.org/~hertzog/pts/bugs.txt
69     wget $wgetopt http://merkel.debian.org/~hertzog/pts/sources
70 hertzog 422 cut -f1,3 sources >sources.new
71     touch -r sources sources.new
72     mv sources.new sources
73 hertzog 344
74 hertzog 372 # Download debcheck lists
75     nice_wget http://qa.debian.org/~weasel/debcheck-result/stable/lists/ALL-pkglist \
76     debcheck-stable
77     nice_wget http://qa.debian.org/~weasel/debcheck-result/testing/lists/ALL-pkglist \
78     debcheck-testing
79     nice_wget http://qa.debian.org/~weasel/debcheck-result/unstable/lists/ALL-pkglist \
80     debcheck-unstable
81 hertzog 344
82 hertzog 479 # Download the list of packages with debconf templates
83 hertzog 692 # DISABLED until ddtp.debian.org is back up
84     #nice_wget http://ddtp.debian.org/cgi-bin/debconf_list.cgi debconf-list
85 hertzog 479
86 hertzog 560 # Get wnpp information (and parse it) [PvR]
87 hertzog 566 wget $wgetopt -O wnpp.html "http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&data=wnpp&archive=no&pend-exc=done"
88 hertzog 560 ../bin/parse-wnpp.pl < wnpp.html > wnpp.txt
89    
90 hertzog 344 # What more ?
91    
92     # Decompress all files
93     for file in *.gz; do
94     gzip -d -c $file > ${file%%.gz}
95     done
96    

Properties

Name Value
svn:eol-style native
svn:executable *
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5