[Debian-l10n-commits] ddtp branch master updated. 20080812.0-151-g0e798b2

Martijn van Oosterhout kleptog-guest at moszumanska.debian.org
Sat Feb 6 18:43:52 UTC 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "ddtp".

The branch, master has been updated
       via  0e798b247c0bdbd681bc2639864b01d187c7f83a (commit)
       via  e6ca266fd6df9985465f9c32a2ef0cbf050f54d0 (commit)
       via  988d8519aa4c58eb8626aa151e54d2310821bfae (commit)
      from  e95f9270085ad2e00e536484eb454c71cd1a5ccf (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------

http://anonscm.debian.org/gitweb/?p=debian-l10n/ddtp.git;a=commitdiff;h=0e798b247c0bdbd681bc2639864b01d187c7f83a

commit 0e798b247c0bdbd681bc2639864b01d187c7f83a
Author: Martijn van Oosterhout <kleptog at svana.org>
Date:   Sat Feb 6 18:33:27 2016 +0000

    Less retention = more disk space available.


http://anonscm.debian.org/gitweb/?p=debian-l10n/ddtp.git;a=commitdiff;h=e6ca266fd6df9985465f9c32a2ef0cbf050f54d0

commit e6ca266fd6df9985465f9c32a2ef0cbf050f54d0
Author: Martijn van Oosterhout <kleptog at svana.org>
Date:   Sat Feb 6 18:33:03 2016 +0000

    Changed needed to get Translations updated again.


http://anonscm.debian.org/gitweb/?p=debian-l10n/ddtp.git;a=commitdiff;h=988d8519aa4c58eb8626aa151e54d2310821bfae

commit 988d8519aa4c58eb8626aa151e54d2310821bfae
Author: Martijn van Oosterhout <kleptog at svana.org>
Date:   Sat Aug 22 11:35:34 2015 +0000

    Reduce the amount of backscatter email.

-----------------------------------------------------------------------

Summary of changes:
 ddtp-dinstall/checks/ddtp_i18n_check.sh | 23 ++++++++++++-----------
 ddts/bin/mailparser.pl                  |  8 ++++++++
 file2Translation.sh                     |  2 +-
 logrotate.config                        |  2 +-
 4 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/ddtp-dinstall/checks/ddtp_i18n_check.sh b/ddtp-dinstall/checks/ddtp_i18n_check.sh
index 74a8eee..1a4b838 100755
--- a/ddtp-dinstall/checks/ddtp_i18n_check.sh
+++ b/ddtp-dinstall/checks/ddtp_i18n_check.sh
@@ -80,7 +80,7 @@ elif [ ! -d "$PACKAGES_LISTS_DIR" ]; then
 	usage
 fi
 
-STABLE="jessie"
+#STABLE="jessie"
 TESTING="stretch"
 UNSTABLE="sid"
 
@@ -140,13 +140,13 @@ is_dirname_okay () {
 		"$dists_parent_dir/dists")                         return 0;;
 # TODO/FIXME: It is undecided how to update at stable/point-releases, so we
 #             don't allow files to $STABLE.
-		"$dists_parent_dir/dists/$STABLE")                 return 0;;
-		"$dists_parent_dir/dists/$STABLE/main")            return 0;;
-		"$dists_parent_dir/dists/$STABLE/main/i18n")       return 0;;
-		"$dists_parent_dir/dists/$STABLE/contrib")         return 0;;
-		"$dists_parent_dir/dists/$STABLE/contrib/i18n")    return 0;;
-		"$dists_parent_dir/dists/$STABLE/non-free")        return 0;;
-		"$dists_parent_dir/dists/$STABLE/non-free/i18n")   return 0;;
+#		"$dists_parent_dir/dists/$STABLE")                 return 0;;
+#		"$dists_parent_dir/dists/$STABLE/main")            return 0;;
+#		"$dists_parent_dir/dists/$STABLE/main/i18n")       return 0;;
+#		"$dists_parent_dir/dists/$STABLE/contrib")         return 0;;
+#		"$dists_parent_dir/dists/$STABLE/contrib/i18n")    return 0;;
+#		"$dists_parent_dir/dists/$STABLE/non-free")        return 0;;
+#		"$dists_parent_dir/dists/$STABLE/non-free/i18n")   return 0;;
 		"$dists_parent_dir/dists/$TESTING")                return 0;;
 		"$dists_parent_dir/dists/$TESTING/main")           return 0;;
 		"$dists_parent_dir/dists/$TESTING/main/i18n")      return 0;;
@@ -332,7 +332,7 @@ fi
 cd "$OLDPWD"
 
 # Get the list of valid packages (sorted, uniq)
-for t in "$STABLE" "$TESTING" "$UNSTABLE"; do
+for t in "$TESTING" "$UNSTABLE"; do
 	if [ ! -f "$PACKAGES_LISTS_DIR/$t" ]; then
 		echo "Missing $PACKAGES_LISTS_DIR/$t" >&2
 		exit 1
@@ -345,7 +345,8 @@ while read f; do
 	if   [ -d "$f" ]; then
 		if ! is_dirname_okay "$f"; then
 			echo "Wrong directory name: $f" >&2
-			exit 1
+			echo "Continuing..." >&2
+#			exit 1
 		fi
 	elif [ -f "$f" ]; then
 		# If $f is in $SPECIAL_FILES, we skip to the next loop because
@@ -371,7 +372,7 @@ while read f; do
 		TPKGS=$(basename "$f").pkgs
 		grep "^Package: " "$f" | cut -d' ' -f 2 | sort -u > "$TMP_WORK_DIR/$TPKGS"
 		case "$f" in
-			*/$STABLE/*)   t="$STABLE";;
+#			*/$STABLE/*)   t="$STABLE";;
 			*/$TESTING/*)  t="$TESTING";;
 			*/$UNSTABLE/*) t="$UNSTABLE";;
 		esac
diff --git a/ddts/bin/mailparser.pl b/ddts/bin/mailparser.pl
index 2ea9f12..aa602e8 100755
--- a/ddts/bin/mailparser.pl
+++ b/ddts/bin/mailparser.pl
@@ -969,6 +969,14 @@ sub mailparser () {
 	my $head_in = $mail_in -> head;
 	   $head_in -> unfold;				# remove internal new line in all fields
 
+	if( $head_in->get("Return-Path") =~ /^<>/ ) {
+		warning "Apparently a bounce: " . $head_in->get("Return-Path");
+		exit 0;
+	}
+	if( $head_in->get("X-DDTS-Mail") =~ /^server/ ) {
+		warning "DDTS mail: " . $head_in->get("X-DDTS-Mail");
+		exit 0;
+	}
 	my $from       = $head_in -> get('From'      );
 	my $reply_to   = $head_in -> get('Reply-To'  );
 	my $mailto     = $head_in -> get('To'        );
diff --git a/file2Translation.sh b/file2Translation.sh
index b90ee22..6fa8d4c 100755
--- a/file2Translation.sh
+++ b/file2Translation.sh
@@ -8,7 +8,7 @@ LANGS=`psql ddtp -q -A -t -c "select distinct language from translation_tb where
 #DISTS="lenny sid"
 #DISTS="squeeze sid"
 #DISTS="wheezy sid"
-DISTS="jessie sid stretch"
+DISTS="sid stretch"
 date
 echo "Downloading package lists from http://ftp-master.debian.org/i18n/ ..."
 mkdir -p packagelist
diff --git a/logrotate.config b/logrotate.config
index 3fd50de..6fb5eb4 100644
--- a/logrotate.config
+++ b/logrotate.config
@@ -1,7 +1,7 @@
 /org/ddtp.debian.net/pg_dump/pg_ddts.dump.gz {
 	weekly
 	missingok
-	rotate 8
+	rotate 6
 	nocompress
 	notifempty
 	#create 640 ddtp debian-i18n-users
-----------------------------------------------------------------------


hooks/post-receive
-- 
ddtp



More information about the Debian-l10n-commits mailing list