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

lintian: r272 - trunk/checks



Author: he
Date: 2004-05-13 22:20:57 +0200 (Thu, 13 May 2004)
New Revision: 272

Modified:
   trunk/checks/changelog-file
Log:
Avoid warnings.


Modified: trunk/checks/changelog-file
===================================================================
--- trunk/checks/changelog-file	2004-05-13 15:05:27 UTC (rev 271)
+++ trunk/checks/changelog-file	2004-05-13 20:20:57 UTC (rev 272)
@@ -243,13 +243,14 @@
 }
 close IN;
 
-chomp($first_entry_date = `/bin/date -d "$first_entry_date" +\%s`);
-chomp($second_entry_date = `/bin/date -d "$second_entry_date" +\%s`);
+if ($first_entry_date && $second_entry_date) {
+    chomp($first_entry_date = `/bin/date -d "$first_entry_date" +\%s`);
+    chomp($second_entry_date = `/bin/date -d "$second_entry_date" +\%s`);
 
-tag "latest-debian-changelog-entry-without-new-date" 
-    unless (($first_entry_date - $second_entry_date) > 0);
-
+    tag "latest-debian-changelog-entry-without-new-date" 
+	unless (($first_entry_date - $second_entry_date) > 0);
 }
+}
 
 1;
 



Reply to: