[SCM] Debian package checker branch, master, updated. 2.3.3-45-g5eb50bf
The following commit has been merged in the master branch:
commit 9ab83d6ef424d6e94372709c1ce525f0c615ee4a
Author: Raphaël Hertzog <hertzog@debian.org>
Date: Wed Mar 3 21:30:23 2010 +0100
New tag unknown-file-in-debian-source
The new tag is issued for unknown/unrecognized files in debian/source/.
diff --git a/checks/debian-source-dir b/checks/debian-source-dir
index 8c4281d..c07b837 100644
--- a/checks/debian-source-dir
+++ b/checks/debian-source-dir
@@ -33,6 +33,14 @@ our %KNOWN_FORMATS = (
"3.0 (bzr)" => 1,
);
+our %KNOWN_FILES = (
+ "format" => 1,
+ "include-binaries" => 1,
+ "lintian-overrides" => 1,
+ "options" => 1,
+ "patch-header" => 1,
+);
+
sub run {
my $pkg = shift;
@@ -50,6 +58,17 @@ if (-e "debfiles/source/format") {
tag "missing-debian-source-format";
}
+if (-d "debfiles/source") {
+ opendir(DEBSRC, "debfiles/source") or fail("cannot opendir debian/source/: $!");
+ my $file;
+ while ($file = readdir(DEBSRC)) {
+ next if $file eq "." or $file eq "..";
+ tag "unknown-file-in-debian-source", $file
+ unless $KNOWN_FILES{$file};
+ }
+ closedir(DEBSRC);
+}
+
}
1;
diff --git a/checks/debian-source-dir.desc b/checks/debian-source-dir.desc
index 0399012..7e4f029 100644
--- a/checks/debian-source-dir.desc
+++ b/checks/debian-source-dir.desc
@@ -41,3 +41,19 @@ Info: The source package is still using the old source format "1.0" while
updating packages to use the new source formats.
Ref: dpkg-source(1)
+Tag: unknown-file-in-debian-source
+Severity: important
+Certainty: possible
+Info: The source package contains a file in debian/source/ that lintian
+ doesn't know about. Currently the following files are recognized:
+ .
+ * format
+ * include-binaries
+ * lintian-overrides
+ * options
+ * patch-header
+ .
+ This tag is emitted in case you mistyped the name of one of the above
+ files. If that's not the case and if the file can be legitimately be
+ expected in source packages, please file a bug against lintian asking
+ for the file to be recognized.
--
Debian package checker
Reply to: