Author: cjwatson
Date: 2006-01-17 15:49:36 +0100 (Tue, 17 Jan 2006)
New Revision: 539

Modified:
   trunk/checks/debconf
   trunk/debian/changelog
Log:
* checks/debconf:
  + [CW] Show template name for empty-translated-choices,
    mismatch-translated-choices, and unknown-field-in-templates.

Modified: trunk/checks/debconf
===================================================================
--- trunk/checks/debconf        2006-01-16 08:15:07 UTC (rev 538)
+++ trunk/checks/debconf        2006-01-17 14:49:36 UTC (rev 539)
@@ -139,10 +139,10 @@
       for my $key (keys %$template) {
          if ($key =~ /^choices-/) {
            if (! $template->{$key} || ($template->{$key} =~ /^\s*$/)) {
-               tag "empty-translated-choices", "$key";
+               tag "empty-translated-choices", "$template->{template} $key";
            }
            if (($template->{$key} =~ s/,\s/, /g) != $nrchoices) {
-               tag "mismatch-translated-choices", "$key";
+               tag "mismatch-translated-choices", "$template->{template} $key";
            }
          }
        }
@@ -173,7 +173,7 @@
            $languages{$lang}{$mainfield}=1;
        }
        unless ($template_fields{$mainfield}) { # Ignore language codes here
-           tag "unknown-field-in-templates", "$field";
+           tag "unknown-field-in-templates", "$template->{template} $field";
        }
     }
     if (exists $template->{choices}

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2006-01-16 08:15:07 UTC (rev 538)
+++ trunk/debian/changelog      2006-01-17 14:49:36 UTC (rev 539)
@@ -7,6 +7,9 @@
 
   * checks/common_data.pm:
     + [FL] Add xlibs-dev and debmake to %known_obsolete_packages
+  * checks/debconf:
+    + [CW] Show template name for empty-translated-choices,
+      mismatch-translated-choices, and unknown-field-in-templates.
   * checks/debhelper:
     + [FL] Also check for debhelper build-dependency in debhelper-using
       cdbs based packages


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to