| 36 |
fi |
fi |
| 37 |
} |
} |
| 38 |
|
|
| 39 |
|
nice_redirect_to() { |
| 40 |
|
# $1 : target file |
| 41 |
|
# $2-... : shell command |
| 42 |
|
dest="$1" |
| 43 |
|
shift |
| 44 |
|
if [ -f "$dest" ] ; then |
| 45 |
|
mv "$dest" "$dest.bak" |
| 46 |
|
fi |
| 47 |
|
$* > "$dest" || (echo "Failure while executing $* . Continuing ..." ; cp "$dest.bak" "$dest") |
| 48 |
|
} |
| 49 |
|
|
| 50 |
# Download all Sources.gz |
# Download all Sources.gz |
| 51 |
for comp in main contrib non-free |
for comp in main contrib non-free |
| 52 |
do |
do |
| 104 |
cut -f1,3 sources >sources.map.new |
cut -f1,3 sources >sources.map.new |
| 105 |
touch -r sources sources.map.new |
touch -r sources sources.map.new |
| 106 |
mv sources.map.new sources.map |
mv sources.map.new sources.map |
| 107 |
$root/bin/tagged_bugs.py "gift" "debian-qa@lists.debian.org" > bugs.gift.txt \ |
nice_redirect_to bugs.help.txt $root/bin/tagged_bugs.py "help" |
| 108 |
|| echo "PTS - update_incoming.sh - Failure while retrieving 'gift' bugs, continuing ..." |
nice_redirect_to bugs.gift.txt \ |
| 109 |
$root/bin/tagged_bugs.py "help" > bugs.help.txt \ |
$root/bin/tagged_bugs.py "gift" "debian-qa@lists.debian.org" |
|
|| echo "PTS - update_incoming.sh - Failure while retrieving 'help' bugs, continuing ..." |
|
| 110 |
|
|
| 111 |
# Download debcheck lists |
# Download debcheck lists |
| 112 |
DCROOT=http://qa.debian.org/data/debcheck/result |
DCROOT=http://qa.debian.org/data/debcheck/result |