[Debian-l10n-commits] [ddtp] 01/03: Change if package was actually found, to reducing spamming in logs.

Martijn van Oosterhout kleptog-guest at moszumanska.debian.org
Sat Mar 29 07:19:23 UTC 2014


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

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

commit b7398e63732a5b70b827981eae91ce6f671230d4
Author: Martijn van Oosterhout <kleptog at svana.org>
Date:   Sat Mar 29 07:13:20 2014 +0000

    Change if package was actually found, to reducing spamming in logs.
---
 ddt.cgi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ddt.cgi b/ddt.cgi
index b7e09e9..091834a 100755
--- a/ddt.cgi
+++ b/ddt.cgi
@@ -279,6 +279,11 @@ if (param('desc_id') and not param('language') and not param('getuntrans') and n
 	$sth->execute($description_id);
 
 	($description,$prioritize,$package,$source) = $sth->fetchrow_array ;
+	if(!defined $description) {
+	        print header(-status => 404);
+	        print "Package not found\n";
+	        exit(0);
+        }
 
 	print "Content-type: text/html; charset=UTF-8\n";	
 	print "\n";	

-- 
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