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

lintian: r530 - in trunk: checks debian testset/relations/debian



Author: djpig
Date: 2006-01-02 08:42:40 +0100 (Mon, 02 Jan 2006)
New Revision: 530

Modified:
   trunk/checks/fields
   trunk/debian/changelog
   trunk/testset/relations/debian/control
Log:
Allow version numbers of 0 by correctly checking the output
of _valid_version for definedness and not the boolean value
(Closes: #345005)


Modified: trunk/checks/fields
===================================================================
--- trunk/checks/fields	2006-01-02 07:35:17 UTC (rev 529)
+++ trunk/checks/fields	2006-01-02 07:42:40 UTC (rev 530)
@@ -300,7 +300,7 @@
 					    if ($d_version && grep { $d_version->[0] eq $_ } ("<", ">"));
 
 					tag "bad-version-in-relation", "$field: $part_d_orig"
-					    if ($d_version->[0] && ! (_valid_version($d_version->[1]))[1]);
+					    if ($d_version->[0] && ! defined((_valid_version($d_version->[1]))[1]));
 					
 					tag "package-relation-with-self", "$field: $part_d_orig"
 					    if ($pkg eq $d_pkg) && ($field ne 'conflicts');

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2006-01-02 07:35:17 UTC (rev 529)
+++ trunk/debian/changelog	2006-01-02 07:42:40 UTC (rev 530)
@@ -5,6 +5,10 @@
   * debian/changelog:
     + [FL] Fix wrapping of last changelog entry (Closes: #344899)
 
+  * checks/fields:
+    + [FL] Allow version numbers of 0 by correctly checking the output
+      of _valid_version for definedness and not the boolean value
+      (Closes: #345005)
   * checks/fields.desc:
     + [JvW] Fix typo in description
 

Modified: trunk/testset/relations/debian/control
===================================================================
--- trunk/testset/relations/debian/control	2006-01-02 07:35:17 UTC (rev 529)
+++ trunk/testset/relations/debian/control	2006-01-02 07:42:40 UTC (rev 530)
@@ -11,7 +11,7 @@
 
 Package: relations
 Architecture: all
-Depends: relations, relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils
+Depends: relations, relations(<< 3), dpkg, bash (>> 2.0 ), mail-transport-agent, gawk | awk, foo (>> 2.0), foo (<< 2.2), coreutils, null (>= 0)
 Provides: mail-reader
 Replaces: relations
 Conflicts: foobar (<< 5&5), foo, relations,



Reply to: