lintian: r928 - in trunk: checks debian
Author: rra
Date: 2007-07-23 20:52:44 +0200 (Mon, 23 Jul 2007)
New Revision: 928
Modified:
trunk/checks/cruft
trunk/checks/cruft.desc
trunk/checks/files
trunk/checks/files.desc
trunk/debian/changelog
Log:
* checks/cruft{.desc,}:
+ [RA] Check for .git directories in source packages. Thanks, Julien
Cristau. (Closes: #433516)
* checks/files{.desc,}:
+ [RA] Check for .git directories in binary packages.
Modified: trunk/checks/cruft
===================================================================
--- trunk/checks/cruft 2007-07-23 18:51:34 UTC (rev 927)
+++ trunk/checks/cruft 2007-07-23 18:52:44 UTC (rev 928)
@@ -92,6 +92,8 @@
tag "source-contains-arch-control-dir", "$name";
} elsif ($name =~ m,^(.+/)?\.arch-ids$,) {
tag "source-contains-arch-control-dir", "$name";
+ } elsif ($name =~ m,^(.+/)?\.git$,) {
+ tag "source-contains-git-control-dir", "$name";
}
}
Modified: trunk/checks/cruft.desc
===================================================================
--- trunk/checks/cruft.desc 2007-07-23 18:51:34 UTC (rev 927)
+++ trunk/checks/cruft.desc 2007-07-23 18:52:44 UTC (rev 928)
@@ -83,6 +83,12 @@
included by accident, since Arch version control directories usually don't
belong in packages.
+Tag: source-contains-git-control-dir
+Type: warning
+Info: Source contains a .git directory. It was most likely included by
+ accident, since GIT version control directories usually don't belong in
+ packages and may contain the entire GIT repository.
+
Tag: source-contains-CVS-dir
Type: warning
Info: Package contains a CVS directory. It was most likely included by
Modified: trunk/checks/files
===================================================================
--- trunk/checks/files 2007-07-23 18:51:34 UTC (rev 927)
+++ trunk/checks/files 2007-07-23 18:52:44 UTC (rev 928)
@@ -527,7 +527,7 @@
if ($file =~ m,/\.nfs[^/]+$,) {
tag "nfs-temporary-file-in-package", "$file";
}
-
+
# ---------------- cvsignore files
if ($file =~ m/\.cvsignore$/) {
tag "cvsignore-file-in-package", "$file";
@@ -666,6 +666,9 @@
|| ($file =~ m,/\{arch\}/?$,)) {
tag "package-contains-arch-control-dir", "$file";
}
+ if ($file =~ m,/\.git/?$,) {
+ tag "package-contains-git-control-dir", "$file";
+ }
if ($file =~ m,/.xvpics/?$,) {
tag "package-contains-xvpics-dir", "$file";
}
Modified: trunk/checks/files.desc
===================================================================
--- trunk/checks/files.desc 2007-07-23 18:51:34 UTC (rev 927)
+++ trunk/checks/files.desc 2007-07-23 18:52:44 UTC (rev 928)
@@ -545,6 +545,12 @@
installed by accident, since Arch version control directories usually don't
belong in packages.
+Tag: package-contains-git-control-dir
+Type: warning
+Info: Package contains a .git directory. It was most likely included by
+ accident, since GIT version control directories usually don't belong in
+ packages.
+
Tag: package-contains-xvpics-dir
Type: error
Info: Package contains a .xvpics directory. It was most likely installed by
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2007-07-23 18:51:34 UTC (rev 927)
+++ trunk/debian/changelog 2007-07-23 18:52:44 UTC (rev 928)
@@ -2,6 +2,11 @@
* checks/common_data.pm:
+ [CW] Add automaken as a known virtual package.
+ * checks/cruft{.desc,}:
+ + [RA] Check for .git directories in source packages. Thanks, Julien
+ Cristau. (Closes: #433516)
+ * checks/files{.desc,}:
+ + [RA] Check for .git directories in binary packages.
* checks/menu-format:
+ [RA] wm is a valid needs value. Thanks, Nico Golde.
* checks/scripts:
@@ -25,7 +30,7 @@
+ [RA] Add \w+-backports to the known distribution list. Thanks,
Vincent Danjean. (Closes: #432268)
- -- Russ Allbery <rra@debian.org> Mon, 23 Jul 2007 11:32:32 -0700
+ -- Russ Allbery <rra@debian.org> Mon, 23 Jul 2007 11:52:38 -0700
lintian (1.23.32) unstable; urgency=low
Reply to: