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

lintian: r201 - in trunk: checks debian



Author: jeroen
Date: 2004-04-20 02:05:54 +0200 (Tue, 20 Apr 2004)
New Revision: 201

Modified:
   trunk/checks/fields
   trunk/checks/fields.desc
   trunk/debian/changelog
Log:
checks/fields{,.desc}:
+ [JvW] Added debian-revision-should-not-be-zero, suggested by Adam Conrad


Modified: trunk/checks/fields
===================================================================
--- trunk/checks/fields	2004-04-19 22:58:30 UTC (rev 200)
+++ trunk/checks/fields	2004-04-20 00:05:54 UTC (rev 201)
@@ -69,6 +69,8 @@
 			print "W: $pkg $type: upstream-version-not-numeric $version\n";
 		}
 		if (defined $debian) {
+			print "W: $pkg $type: debian-revision-should-not-be-zero $version\n"
+				if $debian eq '0';
 			$debian =~ /^-([^.]+)?(?:\.[^.]+)?(?:\.[^.]+)?(\..*)?$/;
 			if (not defined $1 or defined $2) {
 				print "W: $pkg $type: debian-revision-not-welformed $version\n";

Modified: trunk/checks/fields.desc
===================================================================
--- trunk/checks/fields.desc	2004-04-19 22:58:30 UTC (rev 200)
+++ trunk/checks/fields.desc	2004-04-20 00:05:54 UTC (rev 201)
@@ -46,6 +46,15 @@
  three dot-seperated parts: one for maintainer release, two for source-NMU,
  three for binary NMU.
 
+Tag: debian-revision-should-not-be-zero
+Type: warning
+Info: The debian version part (the part after the -) should start with one,
+ not with zero. This is to ensure that a correctly-done Maintainer Upload will
+ always have a higher version number than a Non-Maintainer upload: a NMU could
+ have been prepared which introduces this upstream version with
+ Debian-revision -0.1
+Ref: devref 5.11.4.1
+
 Tag: no-architecture-field
 Type: error
 Info: The package does not have an `Architecture:' field in its control file.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2004-04-19 22:58:30 UTC (rev 200)
+++ trunk/debian/changelog	2004-04-20 00:05:54 UTC (rev 201)
@@ -1,9 +1,12 @@
 lintian (1.23.1~alpha) unstable; urgency=low
 
-  Next release, name to be determined.
+Next release, name to be determined.
 
- -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl>  Sun, 18 Apr 2004 03:13:17 +0200
+* checks/fields{,.desc}:
++ [JvW] Added debian-revision-should-not-be-zero, suggested by Adam Conrad
 
+ -- Debian Lintian Maintainers <lintian-maint@debian.org>  Tue, 20 Apr 2004 02:03:37 +0200
+
 lintian (1.23.0) unstable; urgency=low
 
   The ``moving forward'' release, prepared by Marc 'HE' Brockschmidt,



Reply to: