diff options
-rwxr-xr-x | doall | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -13,7 +13,7 @@ wget -O - http://ftp.debian.org/debian/dists/stable/main/source/Sources.gz | gun #wget -O - http://ftp.debian.org/debian/dists/stable-updates/main/source/Sources.gz | gunzip >> distfiles/Sources #wget -O - http://security.debian.org/debian-security/dists/stable/updates/main/source/Sources.gz | gunzip >> distfiles/Sources -PACKAGES=$(grep ^Package: distfiles/Sources |sort -u| sed 's/Package: //') +packages=$(grep ^Package: distfiles/Sources |sort -u| sed 's/Package: //') pv distfiles/Sources | python load_sources.py wget -O - http://ftp.debian.org/debian/dists/stable/main/binary-all/Packages.gz | gunzip >> distfiles/Packages @@ -31,11 +31,11 @@ pv distfiles/Translation-en | python load_descriptions.py rm downloadlist* -f -for PACKAGE in $PACKAGES; do - LETTER=$(echo $PACKAGE |cut -c1) - [ 1$(echo $PACKAGE |cut -c-3) = 1'lib' ] && LETTER=$(echo $PACKAGE |cut -c-4) - echo http://metadata.ftp-master.debian.org/changelogs/main/$LETTER/$PACKAGE/stable_copyright >> downloadlist - echo http://metadata.ftp-master.debian.org/changelogs/main/$LETTER/$PACKAGE/stable_changelog >> downloadlist +for package in $packages; do + letter=$(echo $package |cut -c1) + [ 1$(echo $package |cut -c-3) = 1'lib' ] && letter=$(echo $package |cut -c-4) + echo http://metadata.ftp-master.debian.org/changelogs/main/$letter/$package/stable_copyright >> downloadlist + echo http://metadata.ftp-master.debian.org/changelogs/main/$letter/$package/stable_changelog >> downloadlist done @@ -60,10 +60,10 @@ if [[ $(find metadata.ftp-master.debian.org -type f |wc -l) -lt $(( $(wc -l <dow fi -for PACKAGE in $PACKAGES; do - LETTER=$(echo $PACKAGE |cut -c1) - [ 1$(echo $PACKAGE |cut -c-3) = 1'lib' ] && LETTER=$(echo $PACKAGE |cut -c-4) - [ -f metadata.ftp-master.debian.org/changelogs/main/$LETTER/$PACKAGE/stable_copyright ] || echo http://metadata.ftp-master.debian.org/changelogs/main/$LETTER/$PACKAGE/stable_$PACKAGE.copyright >> downloadlist404 +for package in $packages; do + letter=$(echo $package |cut -c1) + [ 1$(echo $package |cut -c-3) = 1'lib' ] && letter=$(echo $package |cut -c-4) + [ -f metadata.ftp-master.debian.org/changelogs/main/$letter/$package/stable_copyright ] || echo http://metadata.ftp-master.debian.org/changelogs/main/$letter/$package/stable_$package.copyright >> downloadlist404 done wget -v -x --continue -i downloadlist404 |