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

lintian: r1280 - in trunk: checks debian testset testset/description/debian



Author: rra
Date: 2008-04-23 20:56:57 +0200 (Wed, 23 Apr 2008)
New Revision: 1280

Modified:
   trunk/checks/description
   trunk/debian/changelog
   trunk/testset/description/debian/changelog
   trunk/testset/description/debian/control
   trunk/testset/description/debian/rules
   trunk/testset/tags.description
Log:
  + [FL] New testcases by Tobias Toedter.  (Closes: #471838, #477471)

Modified: trunk/checks/description
===================================================================
--- trunk/checks/description	2008-04-21 22:27:51 UTC (rev 1279)
+++ trunk/checks/description	2008-04-23 18:56:57 UTC (rev 1280)
@@ -54,6 +54,8 @@
 if ($synopsis =~ m/^\s*$/) {
     tag "description-synopsis-is-empty", "";
 } else {
+    # Current dpkg-gencontrol appears to fix this automatically so this
+    # tag will never trigger with a current dpkg-dev.
     if ($synopsis =~ m/^\s/) {
 	tag "description-synopsis-has-leading-spaces", "";
     }

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-04-21 22:27:51 UTC (rev 1279)
+++ trunk/debian/changelog	2008-04-23 18:56:57 UTC (rev 1280)
@@ -85,7 +85,7 @@
   * testset/copyright:
     + [FL] New testcases by Tobias Toedter.  (Closes: #472665)
   * testset/description:
-    + [FL] New testcases by Tobias Toedter.  (Closes: #471838)
+    + [FL] New testcases by Tobias Toedter.  (Closes: #471838, #477471)
 
   * unpack/list-srcpkg:
     + [RA] Fix syntax error introduced by Uploaders support.

Modified: trunk/testset/description/debian/changelog
===================================================================
--- trunk/testset/description/debian/changelog	2008-04-21 22:27:51 UTC (rev 1279)
+++ trunk/testset/description/debian/changelog	2008-04-23 18:56:57 UTC (rev 1280)
@@ -1,3 +1,12 @@
+description (1.1-1) unstable; urgency=low
+
+  * Add the following tests of tags never seen:
+    - description-synopsis-has-leading-spaces
+      This is not yet recognized by Lintian, so the testset currently
+      fails.
+
+ -- Tobias Toedter <toddy@debian.org>  Wed, 23 Apr 2008 13:12:32 +0200
+
 description (1.0-1) unstable; urgency=low
 
   * Initial release.

Modified: trunk/testset/description/debian/control
===================================================================
--- trunk/testset/description/debian/control	2008-04-21 22:27:51 UTC (rev 1279)
+++ trunk/testset/description/debian/control	2008-04-23 18:56:57 UTC (rev 1280)
@@ -2,7 +2,7 @@
 Section: text
 Priority: extra
 Maintainer: Lintian Maintainers <lintian-maint@debian.org>
-Uploaders: Tobias Toedter <t.toedter@gmx.net>
+Uploaders: Tobias Toedter <toddy@debian.org>
 Standards-Version: 3.7.3
 
 Package: description
@@ -32,3 +32,8 @@
  . and please avoid control statements in the long description.
  The line in an extended description should be less than 80 characters, otherwise you'll get
  a Lintian warning.
+
+Package: description-baz
+Architecture: all
+Description:    the synopsis starts with spaces
+ This is a real Lintian bug which has been discovered with this testset.

Modified: trunk/testset/description/debian/rules
===================================================================
--- trunk/testset/description/debian/rules	2008-04-21 22:27:51 UTC (rev 1279)
+++ trunk/testset/description/debian/rules	2008-04-23 18:56:57 UTC (rev 1280)
@@ -3,6 +3,7 @@
 description=debian/description
 description-foo=debian/description-foo
 description-bar=debian/description-bar
+description-baz=debian/description-baz
 
 build:
 
@@ -36,11 +37,21 @@
 	gzip -9 $(description-bar)/usr/share/doc/description/changelog.Debian
 	dpkg-gencontrol -pdescription-bar -P$(description-bar)
 	dpkg --build $(description-bar) ..
+	
+	# Create package description-baz
+	install -d $(description-baz)
+	install -d $(description-baz)/DEBIAN
+	install -d $(description-baz)/usr/share/doc/description
+	install -m 644 debian/changelog \
+	  $(description-baz)/usr/share/doc/description/changelog.Debian
+	gzip -9 $(description-baz)/usr/share/doc/description/changelog.Debian
+	dpkg-gencontrol -pdescription-baz -P$(description-baz)
+	dpkg --build $(description-baz) ..
 
 binary: binary-indep
 
 clean:
 	rm -rf debian/files $(description) $(description-foo) \
-	  $(description-bar) debian/substvars
+	  $(description-bar) $(description-baz) debian/substvars
 
 .PHONY: build binary-indep binary clean

Modified: trunk/testset/tags.description
===================================================================
--- trunk/testset/tags.description	2008-04-21 22:27:51 UTC (rev 1279)
+++ trunk/testset/tags.description	2008-04-23 18:56:57 UTC (rev 1280)
@@ -2,6 +2,7 @@
 E: description-bar: description-contains-invalid-control-statement
 E: description-bar: description-synopsis-is-empty
 E: description-bar: no-copyright-file
+E: description-baz: no-copyright-file
 E: description-foo: description-contains-tabs
 E: description-foo: description-too-long
 E: description-foo: no-copyright-file
@@ -11,6 +12,7 @@
 E: description: description-starts-with-package-name
 E: description: no-copyright-file
 I: description-bar: no-md5sums-control-file
+I: description-baz: no-md5sums-control-file
 I: description-foo: no-md5sums-control-file
 I: description: no-md5sums-control-file
 W: description source: native-package-with-dash-version
@@ -20,4 +22,3 @@
 W: description: changelog-not-compressed-with-max-compression changelog.Debian.gz
 W: description: debian-changelog-file-contains-obsolete-user-emacs-settings
 W: description: description-synopsis-might-not-be-phrased-properly
-W: description: new-package-should-close-itp-bug


Reply to: