[Collab-qa-commits] r2148 - udd/scripts

Andreas Tille tille at alioth.debian.org
Wed Feb 15 12:13:47 UTC 2012


Author: tille
Date: 2012-02-15 12:13:46 +0000 (Wed, 15 Feb 2012)
New Revision: 2148

Modified:
   udd/scripts/fetch_ddtp_translations.sh
Log:
Make sure there are no duplicated entries in Translation index files


Modified: udd/scripts/fetch_ddtp_translations.sh
===================================================================
--- udd/scripts/fetch_ddtp_translations.sh	2012-02-12 16:50:17 UTC (rev 2147)
+++ udd/scripts/fetch_ddtp_translations.sh	2012-02-15 12:13:46 UTC (rev 2148)
@@ -17,6 +17,7 @@
     if [ -f $index ] ; then
 	grep "\.bz2" $index | sed -e 's/^ //' -e 's/ \+/ /g' > $targetfile
     else
+	rm -f $targetfile
 	for trans in `find ${MIRROR}/$indexdir/i18n -mindepth 1 -maxdepth 1 -name "*.bz2"` ; do
 	    echo "`sha1sum $trans | cut -d' ' -f1``ls -l $trans | sed 's/^[-rwlx]\+ [0-9]\+ [^ ]\+ [^ ]\+\([ 0-9]\+[0-9]\) .*/\1/'` `basename $trans`" >> $targetfile
 	done




More information about the Collab-qa-commits mailing list