]> git.deb.at Git - deb/packages.git/blob - cron.d/100syncarchive_backports
config.sh: disable local archive
[deb/packages.git] / cron.d / 100syncarchive_backports
1 #!/bin/bash
2
3 . `dirname $0`/../config.sh
4
5 test -d ${archivedir} || mkdir -p ${archivedir}
6 cd ${archivedir}
7
8 # backports archive
9 #
10 for dist in sarge etch
11 do
12   echo "retrieve Release(.gpg) $dist-backports"
13   test -d backports/${dist}-backports || mkdir -p backports/${dist}-backports
14   (cd backports/${dist}-backports &&
15             wget -q -N ${backports_ftpsite}/dists/${dist}-backports/Release &&
16             wget -q -N ${backports_ftpsite}/dists/${dist}-backports/Release.gpg )
17
18     foo=\$arch_${dist//-/_}
19     for arch in `eval echo $foo`
20     do
21       for part in ${parts}
22       do
23         echo retrieve Packages $dist-backports/$part/$arch
24         test -d backports/${dist}-backports/${part}/binary-${arch} || mkdir -p backports/${dist}-backports/${part}/binary-${arch}
25         (cd backports/${dist}-backports/${part}/binary-${arch} &&
26             wget -q -N ${backports_ftpsite}/dists/${dist}-backports/${part}/binary-${arch}/Packages.gz)
27       done
28       echo retrieve Contents $dist-backports/$arch
29       (cd backports/${dist}-backports &&
30           wget -q -N ${backports_ftpsite}/dists/${dist}-backports/Contents-${arch}.gz)
31     done
32     for part in ${parts}
33     do
34         echo retrieve Sources $dist-backports/$part
35         test -d backports/${dist}-backports/${part}/source || mkdir -p backports/${dist}-backports/${part}/source
36         (cd backports/${dist}-backports/${part}/source &&
37             wget -q -N ${backports_ftpsite}/dists/${dist}-backports/${part}/source/Sources.gz)
38     done
39 done