[Debian-l10n-commits] [SCM] Debian i18n - l10n development - dl10n robots branch, master, updated. 9344e60ea50c4413f18373677274ac06eaa7f2c6

Nicolas François nicolas.francois at centraliens.net
Sun Jun 17 12:00:03 UTC 2012


The following commit has been merged in the master branch:
commit 9344e60ea50c4413f18373677274ac06eaa7f2c6
Author: Nicolas François <nicolas.francois at centraliens.net>
Date:   Sun Jun 17 13:58:08 2012 +0200

    Fix initialization of coordination databases.
    
    * cron/spiderinit: Activate English.
    * cron/spiderinit: Add intermediate checkpoint for the Galician
    and Romanian mailing lists.
    * cron/spiderinit: Fix display of error messages.
    * cron/spiderinit: Cleanup.

diff --git a/Changelog b/Changelog
index 2088aee..53c58f6 100644
--- a/Changelog
+++ b/Changelog
@@ -1,5 +1,13 @@
 2012-06-17  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* cron/spiderinit: Activate English.
+	* cron/spiderinit: Add intermediate checkpoint for the Galician
+	and Romanian mailing lists.
+	* cron/spiderinit: Fix display of error messages.
+	* cron/spiderinit: Cleanup.
+
+2012-06-17  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* lib/Debian/L10n/Spider.pm: Do not parse subject when it could
 	not be retrieved (e.g. spam removed from web archive).
 
diff --git a/cron/spiderinit b/cron/spiderinit
index 82cca32..a6266d7 100755
--- a/cron/spiderinit
+++ b/cron/spiderinit
@@ -32,7 +32,7 @@ run_spider () {
 	month=$3
 
 	if [ -f "$OUTDIR/data/status.$lang" ]; then
-		cp "$OUTDIR/data/status.$lang" "$OUTDIR/data/tmp"
+		cp "$OUTDIR/data/status.$lang" "$TMPDB"
 	fi
 	echo "Running dl10n-spider ($lang $year-$month)..."
 	dl10n-spider --sdb "$TMPDB" --year=$year --month=$month --message=0 $lang
@@ -75,18 +75,18 @@ run_all () {
 	fi
 	mkdir -p "$OUTDIR/html/german"
 
-	## Not used for translation, but coordination needed.
-	## No preferred start date
-	#if [ "$FAST" = 1 ]; then
-	#	run_spider en 2006 01
-	#else
-	#	run_spider en 2001 08
-	#	run_spider en 2001 12
-	#	run_spider en 2002 10
-	#	run_spider en 2003 03
-	#	run_spider en 2005 09
-	#fi
-	#mkdir -p "$OUTDIR/html/english"
+	# Not used for translation, but coordination needed.
+	# No preferred start date
+	if [ "$FAST" = 1 ]; then
+		run_spider en 2006 01
+	else
+		run_spider en 2001 08
+		run_spider en 2001 12
+		run_spider en 2002 10
+		run_spider en 2003 03
+		run_spider en 2005 09
+	fi
+	mkdir -p "$OUTDIR/html/english"
 
 	# No preferred start date
 	if [ "$FAST" = 1 ]; then
@@ -106,6 +106,9 @@ run_all () {
 	mkdir -p "$OUTDIR/html/french"
 
 	run_spider gl 2011 07
+	run_spider gl 2011 10
+	run_spider gl 2012 01
+	run_spider gl 2012 05
 	mkdir -p "$OUTDIR/html/galician"
 
 	run_spider id 2011 12
@@ -136,6 +139,9 @@ run_all () {
 	else
 		run_spider ro 2005 01
 	fi
+	run_spider ro 2010 03
+	run_spider ro 2011 07
+	run_spider ro 2011 11
 	mkdir -p "$OUTDIR/html/romanian"
 
 	run_spider ru 2009 02
@@ -155,7 +161,6 @@ run_all () {
 }
 
 run_all >> $LOGPREFIX.log 2>> $LOGPREFIX.err
-exit
 
 
 
@@ -165,10 +170,10 @@ exit
 # Create pages in the htdocs directory
 cd $OUTDIR
 
-# en nl
-for language in ar ca cs de es fr gl id pt_BR ro ru tr; do
+# nl
+for language in ar ca cs de en es fr gl id pt_BR ro ru tr; do
   if [ -f "$OUTDIR/data/status.$language" ]; then
-    cp "$OUTDIR/data/status.$language" "$OUTDIR/data/tmp"
+    cp "$OUTDIR/data/status.$language" "$TMPDB"
   fi
   echo "Running dl10n-spider ($language)..."                 >> $LOGPREFIX.log
   dl10n-spider --sdb "$TMPDB" --check-bts $language          >> $LOGPREFIX.log \
@@ -181,5 +186,5 @@ for language in ar ca cs de es fr gl id pt_BR ro ru tr; do
 done
 
 # Only display the errors to the cronjob subscribers
-[-f "$LOGPREFIX.err" ] && cat $LOGPREFIX.err || true
+[ -f "$LOGPREFIX.err" ] && cat $LOGPREFIX.err || true
 

-- 
Debian i18n - l10n development - dl10n robots



More information about the Debian-l10n-commits mailing list