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

Bug#129510: Source overrides for lintian



Hi all.

About the source overrides for lintian. The implementation would
be rather simple, we only need to change collection/override-file
to cope with source packages, too. The only problem is, that we
need a canonical location where to put override files in source
package so that we can find them. All other things should automagically
work as long as the overrides are specified in the form
"<pkg> source: foo"

I would propose debian/lintian.overrides or debian/lintian.src-overrides
(the latter would prevent probably some files from beeing loaded that
currently contain the to installed binary overrides, but since the
entries miss the "source" they would be ignored anyway.

Proof-of-concept (i.e. untested) patch attached. Comments welcome.

Gruesse,
-- 
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/
Index: collection/override-file
===================================================================
--- collection/override-file	(revision 156)
+++ collection/override-file	(working copy)
@@ -31,7 +31,13 @@
 unlink("override");
 
 # Pick the first of these files that exists.
-my $file = "unpacked/usr/share/lintian/overrides/$pkg";
+my $file;
+if ($type eq 'source') {
+    $file = "unpacked/debian/lintian.overrides";
+} else {
+    $file = "unpacked/usr/share/lintian/overrides/$pkg";
+}
+
 if ( ! -f $file ) 
 { 	if ( -f $file . ".gz" ) { $file = $file . ".gz"; }
 	else { $file = ''; }
Index: collection/override-file.desc
===================================================================
--- collection/override-file.desc	(revision 156)
+++ collection/override-file.desc	(working copy)
@@ -1,7 +1,7 @@
 Collector-Script: override-file
 Author: Darren Benham <gecko@debian.org>
 Info: This script copies the `override' file of a package into the lintian directory.
-Type: binary, udeb
+Type: binary, udeb, source
 Unpack-Level: 2
 Output: override
 Order: 1

Reply to: