[Debian-l10n-commits] r1043 - /dl10n/trunk/dl10n-nmu

nekral-guest at users.alioth.debian.org nekral-guest at users.alioth.debian.org
Sat May 31 22:24:13 UTC 2008


Author: nekral-guest
Date: Sat May 31 22:24:12 2008
New Revision: 1043

URL: http://svn.debian.org/wsvn/?sc=1&rev=1043
Log:
* Added changes from Thomas:
  + Added Score calculation formula image
  + Updated Score calculation formula to include a coefficient and ignore
    some bugs.
* Added comments to point to the debian-l10n-devel mailing list.
* Temporarily change the ling to the database to match what is used on
  Churro. This should be an option.

Modified:
    dl10n/trunk/dl10n-nmu

Modified: dl10n/trunk/dl10n-nmu
URL: http://svn.debian.org/wsvn/dl10n/trunk/dl10n-nmu?rev=1043&op=diff
==============================================================================
--- dl10n/trunk/dl10n-nmu (original)
+++ dl10n/trunk/dl10n-nmu Sat May 31 22:24:12 2008
@@ -16,7 +16,8 @@
 use POSIX qw(strftime);
 my $generation_date = strftime('%a, %d %b %Y %H:%M:%S %z', gmtime);
 
-my $DB_FILE="./data/status";
+# TODO: add an option
+my $DB_FILE="/org/dl10n-stuff/www/data/unstable.gz";
 my $POPCON="./data/by_inst";
 
 my $ldapserver = {
@@ -75,7 +76,11 @@
       print STDERR "$pkg has no popcon score\n";
       $pop->{$pkg} = 1;
     }
-    $packages->{$pkg}->{score} += ((time - $date) / (60 * 60 * 24 * 7) * $pop->{$pkg});
+    my $coeff = 1;
+    $coeff = 5 if ($bug_title =~ /Please switch to gettext-based debconf template/);
+    if (not $bug_title eq "gdm does not use gettext-based debconf templates; see README.Debian") {
+      $packages->{$pkg}->{score} += ((time - $date) / (60 * 60 * 24 * 7) * $coeff * $pop->{$pkg});
+    }
     push (@{$packages->{$pkg}->{debconf}}, $bug_nb);
   } else {
     push (@{$packages->{$pkg}->{l10n}}, $bug_nb);
@@ -139,6 +144,7 @@
 print FILE "</head>\n";
 
 print FILE "<body>\n";
+print FILE "<img src=\"score.png\" alt=\"Score calculation formula\" />";
 print FILE "  <table summary=\"rank of packages\">\n";
 print FILE "    <tr><td>Package</td><td>Score</td><td>L10n bugs</td><td>Maintainer</td><td>Comment</td></tr>\n";
 
@@ -185,6 +191,7 @@
 print FILE "  </table>\n";
 print FILE "  <hr />\n";
 print FILE "  <p><small>Generated on $generation_date</small></p>\n";
+print FILE "  <p><small>Comments: <a href='mailto:debian-l10n-devel\@lists.alioth.debian.org'>Debian L10N Development Team</a></small></p>\n";
 print FILE "</body>\n";
 print FILE "</html>\n";
 close (FILE);
@@ -200,6 +207,7 @@
 print FILE "</head>\n";
 
 print FILE "<body>\n";
+print FILE "<img src=\"score.png\" alt=\"Score calculation formula\" />";
 print FILE "  <table summary=\"rank of packages\">\n";
 print FILE "    <tr><td>Maintainer</td><td>Package</td><td>Score</td><td>L10n bugs</td><td>Comment</td></tr>\n";
 
@@ -234,7 +242,9 @@
 print FILE "  </table>\n";
 print FILE "  <hr />\n";
 print FILE "  <p><small>Generated on $generation_date</small></p>\n";
+print FILE "  <p><small>Comments: <a href='mailto:debian-l10n-devel\@lists.alioth.debian.org'>Debian L10N Development Team</a></small></p>\n";
 print FILE "</body>\n";
 print FILE "</html>\n";
 close (FILE);
 close (DATABASE);
+




More information about the Debian-l10n-commits mailing list