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

lintian: r1164 - in trunk: checks debian testset testset/filenames/debian



Author: rra
Date: 2008-02-04 03:55:53 +0100 (Mon, 04 Feb 2008)
New Revision: 1164

Modified:
   trunk/checks/files
   trunk/checks/files.desc
   trunk/debian/changelog
   trunk/testset/filenames/debian/rules
   trunk/testset/tags.filenames
Log:
  + [RA] Warn of .gitignore files installed by the package.  Patch from
    Chris Lamb.  (Closes: #459502)

Modified: trunk/checks/files
===================================================================
--- trunk/checks/files	2008-02-04 02:38:13 UTC (rev 1163)
+++ trunk/checks/files	2008-02-04 02:55:53 UTC (rev 1164)
@@ -600,6 +600,11 @@
 	    tag "cvsignore-file-in-package", "$file";
 	}
 
+	# ---------------- .gitignore files
+	if ($file =~ m/\.gitignore$/) {
+	    tag "gitignore-file-in-package", "$file";
+	}
+
 	# ---------------- arch-inventory files
 	if ($file =~ m/\.arch-inventory$/) {
 	    tag "arch-inventory-file-in-package", "$file";

Modified: trunk/checks/files.desc
===================================================================
--- trunk/checks/files.desc	2008-02-04 02:38:13 UTC (rev 1163)
+++ trunk/checks/files.desc	2008-02-04 02:55:53 UTC (rev 1164)
@@ -604,13 +604,22 @@
 
 Tag: cvsignore-file-in-package
 Type: warning
-Info: Package contains a '.cvsignore' file.  It may have been installed by
- accident.
+Info: Package contains a .cvsignore file.  This file is used by the CVS
+ revision control system to specify untracked files that it should ignore.
+ This file is generally useless in an installed package and was probably
+ installed by accident.
 
+Tag: gitignore-file-in-package
+Type: error
+Info: Package contains a .gitignore file. This file is used by the Git
+ revision control system to specify untracked files that it should ignore.
+ This file is generally useless in an installed package and was probably
+ installed by accident.
+
 Tag: arch-inventory-file-in-package
 Type: warning
-Info: Package contains a '.arch-inventory' file.  It may have been installed by
- accident.
+Info: Package contains a '.arch-inventory' file.  It may have been
+ installed by accident.
 
 Tag: svn-commit-file-in-package
 Type: warning

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2008-02-04 02:38:13 UTC (rev 1163)
+++ trunk/debian/changelog	2008-02-04 02:55:53 UTC (rev 1164)
@@ -34,6 +34,8 @@
     + [RA] Warn about /etc/cron.{hourly,daily,weekly,monthly} scripts that
       won't be executed by run-parts because of periods in the name.
       Patch from Chris Lamb.  (Closes: #458742)
+    + [RA] Warn of .gitignore files installed by the package.  Patch from
+      Chris Lamb.  (Closes: #459502)
   * checks/infofiles:
     + [RA] Don't issue unknown-intepreter for maintainer scripts with
       weird interpreters.  checks/scripts already handles this and the tag

Modified: trunk/testset/filenames/debian/rules
===================================================================
--- trunk/testset/filenames/debian/rules	2008-02-04 02:38:13 UTC (rev 1163)
+++ trunk/testset/filenames/debian/rules	2008-02-04 02:55:53 UTC (rev 1164)
@@ -53,6 +53,7 @@
 	mkdir debian/tmp/usr/lib/perl5/.arch-ids
 	mkdir debian/tmp/usr/lib/perl5/.bzr
 	install -d debian/tmp/usr/share/perl5
+	echo foo > debian/tmp/usr/lib/perl5/foo/.gitignore
 
 	touch debian/tmp/usr/lib/perl5/foo/.packlist
 	chmod 644 debian/tmp/usr/lib/perl5/foo/.packlist

Modified: trunk/testset/tags.filenames
===================================================================
--- trunk/testset/tags.filenames	2008-02-04 02:38:13 UTC (rev 1163)
+++ trunk/testset/tags.filenames	2008-02-04 02:55:53 UTC (rev 1164)
@@ -5,6 +5,7 @@
 E: filenames: dir-or-file-in-srv srv/foo/
 E: filenames: dir-or-file-in-srv srv/foo/bar
 E: filenames: file-in-etc-not-marked-as-conffile /etc/gconf/schemas/test.schema
+E: filenames: gitignore-file-in-package usr/lib/perl5/foo/.gitignore
 E: filenames: lengthy-symlink usr/lib/filenames/symlink4wrong ../filenames/symlink2
 E: filenames: lengthy-symlink usr/share/doc/filenames/version.txt.gz ../filenames/doc/version6.txt.gz
 E: filenames: no-copyright-file


Reply to: