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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1948 by zack, Sat Aug 9 14:00:07 2008 UTC revision 1949 by zack, Mon Aug 11 01:36:09 2008 UTC
# Line 36  nice_wget() { Line 36  nice_wget() {
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
# Line 93  nice_wget http://qa.debian.org/data/bts/ Line 104  nice_wget http://qa.debian.org/data/bts/
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

Legend:
Removed from v.1948  
changed lines
  Added in v.1949

  ViewVC Help
Powered by ViewVC 1.1.5