[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

lintian: r1263 - in trunk: checks debian



Author: rra
Date: 2008-03-12 18:52:44 +0100 (Wed, 12 Mar 2008)
New Revision: 1263

Modified:
   trunk/checks/changelog-file
   trunk/debian/changelog
Log:
* checks/changelog-file:
  + [RA] Quash more Perl warnings on badly malformed NEWS.Debian files.

Modified: trunk/checks/changelog-file
===================================================================
--- trunk/checks/changelog-file	2008-03-12 08:24:21 UTC (rev 1262)
+++ trunk/checks/changelog-file	2008-03-12 17:52:44 UTC (rev 1263)
@@ -172,9 +172,9 @@
     }
 
     # Some checks on the most recent entry.
-    if ($changes->data) {
+    if ($changes->data and defined (($changes->data)[0])) {
         ($news) = $changes->data;
-        if ($news->Distribution =~ /unreleased/i) {
+        if ($news->Distribution && $news->Distribution =~ /unreleased/i) {
             tag "debian-news-entry-has-strange-distribution", $news->Distribution;
         }
         spelling_check('spelling-error-in-news-debian', $news->Changes);
@@ -320,7 +320,7 @@
     }
 
     # Compare against NEWS.Debian if available.
-    if ($news and $entry->Version eq $news->Version) {
+    if ($news and $news->Version and $entry->Version eq $news->Version) {
         for my $field (qw/Distribution Urgency/) {
             if ($entry->$field ne $news->$field) {
                 tag 'changelog-news-debian-mismatch', lc ($field),

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-03-12 08:24:21 UTC (rev 1262)
+++ trunk/debian/changelog	2008-03-12 17:52:44 UTC (rev 1263)
@@ -5,6 +5,8 @@
       multiarch directories.  (Closes: #469301)
     + [RA] Suggest an override for arch: all packages containing binaries
       independent of the host architecture (such as for cross-compiles).
+  * checks/changelog-file:
+    + [RA] Quash more Perl warnings on badly malformed NEWS.Debian files.
   * checks/copyright-file{.desc,}:
     + [RA] Document handling of false positives for GPL, GFDL, and LGPL
       license references and catch the GFDL 1.1 false positive.


Reply to: