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

[SCM] Debian package checker branch, master, updated. 1.24.3-42-g91b1018



The following commit has been merged in the master branch:
commit 10265c8dab36a916c4d7ebc15633440b87012a0b
Author: Frank Lichtenheld <djpig@debian.org>
Date:   Wed Aug 13 02:38:12 2008 -0300

    checks/standards-version: Fix Perl warnings
    
    Otherwise you can get something like this if only the
    date is broken:
    Use of uninitialized value $pkgdate in numeric gt (>) at /usr/share/lintian/checks/standards-version line 116.
    Use of uninitialized value $pkgdate in gmtime at /usr/share/lintian/checks/standards-version line 117.
    W: netspeed source: timewarp-standards-version (1970-01-01 < 2008-06-04)

diff --git a/checks/standards-version b/checks/standards-version
index 56ab759..990bb8a 100644
--- a/checks/standards-version
+++ b/checks/standards-version
@@ -106,7 +106,7 @@ my $changes = $info->changelog;
 my $pkgdate;
 if (defined $changes) {
     my ($entry) = $changes->data;
-    $pkgdate = $entry ? $entry->Timestamp : 0;
+    $pkgdate = ($entry && $entry->Timestamp) ? $entry->Timestamp : time;
 } else {
     $pkgdate = time;
 }
diff --git a/debian/changelog b/debian/changelog
index 36ada0c..c8c9104 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -35,6 +35,8 @@ lintian (1.24.4) UNRELEASED; urgency=low
       issued for a version mismatch.  (Closes: #494400)
     + [ADB] Correctly match alternative dependency templates in symbols
       files which specify an unversioned dependency.
+  * checks/standards-version:
+    + [FL] Avoid Perl warning if only the timestamp could not be parsed.
 
   * collection/objdump-info:
     + [ADB] Correctly parse a readelf symbol version block containing the

-- 
Debian package checker


Reply to: