[Debian-l10n-commits] [ddtp] 01/01: Bugfix to make it more robust against changes in the source directory.

Martijn van Oosterhout kleptog-guest at alioth.debian.org
Sat Sep 14 08:46:23 UTC 2013


This is an automated email from the git hooks/post-receive script.

kleptog-guest pushed a commit to branch master
in repository ddtp.

commit a28ec6877c637743ce49fc034567212769590ac7
Author: DDTP User <ddtp at i18n.debian.net>
Date:   Sat Sep 14 10:42:26 2013 +0200

    Bugfix to make it more robust against changes in the source directory.
    
    This should make it Just Work after the release.
---
 file2Translation.sh |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/file2Translation.sh b/file2Translation.sh
index f903ac0..1c7228e 100755
--- a/file2Translation.sh
+++ b/file2Translation.sh
@@ -9,16 +9,20 @@ LANGS=`psql ddtp -q -A -t -c "select distinct language from translation_tb where
 #DISTS="squeeze sid"
 #DISTS="wheezy sid"
 DISTS="jessie sid"
-
+date
+echo "Downloading package lists from http://ftp-master.debian.org/i18n/ ..."
 mkdir -p packagelist
 cd packagelist
-for distribution in $DISTS squeeze md5sum timestamp timestamp.gpg
+wget -q -m -nd http://ftp-master.debian.org/i18n/md5sum || \
+	echo "failed to wget http://ftp-master.debian.org/i18n/md5sum"
+for distribution in $(cut -c33- < md5sum)
 do
+	echo "  $distribution"
 	rm -f $distribution
 	wget -q -m -nd http://ftp-master.debian.org/i18n/$distribution || \
 		echo "failed to wget http://ftp-master.debian.org/i18n/$distribution"
 done
-md5sum --check --quiet md5sum
+md5sum --check md5sum
 cd ..
 
 rm -rf Translation-files_new

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-l10n/ddtp.git



More information about the Debian-l10n-commits mailing list