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

lintian: r418 - in trunk: checks debian testset testset/debconf/debian



Author: djpig
Date: 2005-06-17 03:28:58 +0200 (Fri, 17 Jun 2005)
New Revision: 418

Added:
   trunk/testset/debconf/debian/debconf-test-noscripts.templates
Modified:
   trunk/checks/debconf
   trunk/debian/changelog
   trunk/testset/debconf/debian/control
   trunk/testset/debconf/debian/rules
   trunk/testset/tags.debconf
Log:
 Also report postinst-does-not-load-confmodule and
postrm-does-not-purge-debconf if the related files don't
exist at all. Spotted by Gerfried Fuchs (Closes: #301056)


Modified: trunk/checks/debconf
===================================================================
--- trunk/checks/debconf	2005-06-17 01:08:17 UTC (rev 417)
+++ trunk/checks/debconf	2005-06-17 01:28:58 UTC (rev 418)
@@ -296,6 +296,9 @@
 	}
 
 	close IN;
+    } elsif ($file eq 'postinst') {
+	tag "$file-does-not-load-confmodule", "" 
+	    unless $type eq 'udeb';
     }
 }
 
@@ -306,12 +309,15 @@
 	s/#.*//;    # Not perfect for Perl, but should be OK
 	if (not $db_purge and m/db_purge/) {    # TODO: Perl?
 	    $db_purge=1;
+	    last;
 	}
     }
 
     unless ($db_purge) {
 	tag "postrm-does-not-purge-debconf", "";
     }
+} elsif ($type ne 'udeb') {
+    tag "postrm-does-not-purge-debconf", "";
 }
 
 # Check that the right dependencies are in the control file.

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2005-06-17 01:08:17 UTC (rev 417)
+++ trunk/debian/changelog	2005-06-17 01:28:58 UTC (rev 418)
@@ -14,6 +14,10 @@
   
   * checks/conffiles:
     + [JvW] Warn on /var files being a conffile too (Closes: #293443)
+  * checks/debconf:
+    + [FL] Also report postinst-does-not-load-confmodule and
+      postrm-does-not-purge-debconf if the related files don't
+      exist at all. Spotted by Gerfried Fuchs (Closes: #301056)
   * checks/menus:
     + [FL] New check menu-file-in-usr-lib because /usr/lib/menu is
       deprecated

Modified: trunk/testset/debconf/debian/control
===================================================================
--- trunk/testset/debconf/debian/control	2005-06-17 01:08:17 UTC (rev 417)
+++ trunk/testset/debconf/debian/control	2005-06-17 01:28:58 UTC (rev 418)
@@ -10,6 +10,12 @@
 Depends: ${shlibs:Depends}, debconf
 Description: Test package for the debconf checks of lintian
 
+Package: debconf-test-noscripts
+Architecture: any
+Depends: ${shlibs:Depends}, debconf
+Description: Test package for the debconf checks of lintian
+ Package missing postinst/postrm/config
+
 Package: debconf-udeb
 Section: debian-installer
 XC-Package-Type: udeb

Added: trunk/testset/debconf/debian/debconf-test-noscripts.templates
===================================================================
--- trunk/testset/debconf/debian/debconf-test-noscripts.templates	2005-06-17 01:08:17 UTC (rev 417)
+++ trunk/testset/debconf/debian/debconf-test-noscripts.templates	2005-06-17 01:28:58 UTC (rev 418)
@@ -0,0 +1,3 @@
+Template: debconf/test
+Type: text
+_description: Foo bar (1)

Modified: trunk/testset/debconf/debian/rules
===================================================================
--- trunk/testset/debconf/debian/rules	2005-06-17 01:08:17 UTC (rev 417)
+++ trunk/testset/debconf/debian/rules	2005-06-17 01:28:58 UTC (rev 418)
@@ -28,7 +28,9 @@
 
 	dh_installchangelogs -a
 	dh_installdocs -a
-	dh_installdebconf -a
+	dh_installdebconf -pdebconf-test
+	dh_installdebconf -pdebconf-test-noscripts --noscripts
+	dh_installdebconf -pdebconf-udeb
 
 	dh_compress -a
 	dh_fixperms -a

Modified: trunk/testset/tags.debconf
===================================================================
--- trunk/testset/tags.debconf	2005-06-17 01:08:17 UTC (rev 417)
+++ trunk/testset/tags.debconf	2005-06-17 01:28:58 UTC (rev 418)
@@ -3,6 +3,9 @@
 E: debconf-test: settitle-requires-versioned-depends config
 W: debconf source: maintainer-script-lacks-debhelper-token debian/debconf-test.postinst
 W: debconf source: newer-debconf-templates
+W: debconf-test-noscripts: no-debconf-config
+W: debconf-test-noscripts: postinst-does-not-load-confmodule
+W: debconf-test-noscripts: postrm-does-not-purge-debconf
 W: debconf-test: multiselect-without-dependency
 W: debconf-test: partially-translated-question debconf/testmulti de.utf-8
 W: debconf-udeb udeb: missing-debconf-dependency



Reply to: