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

lintian: r21 - in trunk: checks debian testset



Author: jeroen
Date: 2004-02-09 01:37:00 +0100 (Mon, 09 Feb 2004)
New Revision: 21

Modified:
   trunk/checks/cruft
   trunk/checks/cruft.desc
   trunk/debian/changelog
   trunk/testset/info_tags.filenames
   trunk/testset/tags.filenames
Log:
checks/curft:
+ Check for CVS and Subversion cruft in source packages (Closes: #189776,
  also closes: #190067)


Modified: trunk/checks/cruft
===================================================================
--- trunk/checks/cruft	2004-02-08 23:12:24 UTC (rev 20)
+++ trunk/checks/cruft	2004-02-09 00:37:00 UTC (rev 21)
@@ -62,6 +62,17 @@
     -f or return; # we just need normal files, for now
     (my $name = $File::Find::name) =~ s,^\Q$dir\E/,,;
 
+    # More or less copied from files, but this time it checks the source
+    if ($name =~ m,^(.+/)?svn-commit\.(.+\.)?tmp$,) {
+	print "W: $pkg $type: svn-commit-file-in-source $name\n";
+    } elsif ($name =~ m,^(.+/)?\.cvsignore$,) {
+	print "W: $pkg $type: cvsignore-file-in-source $name\n";
+    } elsif ($name =~ m,^(.+/)?CVS$,) {
+	print "W: $pkg $type: source-contains-CVS-dir $name\n";
+    } elsif ($name =~ m,^(.+/)?\.svn$,) {
+	print "W: $pkg $type: source-contains-svn-control-dir $name\n";
+    }
+
     if ($name =~ m,^(.+/)?config.(?:cache|log|status)$, and $pkg ne "lintian") {
 	print "W: $pkg $type: configure-generated-file-in-source $name\n";
     } elsif ($name =~ m,^(.+/)?config.(?:guess|sub)$, and not $atdinbd) {

Modified: trunk/checks/cruft.desc
===================================================================
--- trunk/checks/cruft.desc	2004-02-08 23:12:24 UTC (rev 20)
+++ trunk/checks/cruft.desc	2004-02-09 00:37:00 UTC (rev 21)
@@ -42,3 +42,27 @@
 Info: The referenced file has a time stamp older than year 2002. This
  usually means that the source package will not work correctly on all
  currently released architectures.
+
+Tag: svn-commit-file-in-source
+Type: warning
+Info: Package source contains a 'svn-commit(.NNN).tmp' file.  This file is
+ almost certainly a left-over from a failed Subversion commit, and does not
+ belong in a Debian package.
+
+Tag: cvsignore-file-in-source
+Type: warning
+Info: Package contains a '.cvsignore' file.  It may have been installed by
+ accident.
+
+Tag: source-contains-svn-control-dir
+Type: error
+Info: Source contains a .svn directory. It was most likely installed by
+ accident, since Subversion version control directories usually don't belong
+ in packages. Export from subversion rather than checkout.
+
+Tag: source-contains-CVS-dir
+Type: error
+Info: Package contains a CVS directory. It was most likely installed by
+ accident, since transient CVS data usually doesn't belong in packages.
+ Export from CVS rather than use a checkout.
+

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2004-02-08 23:12:24 UTC (rev 20)
+++ trunk/debian/changelog	2004-02-09 00:37:00 UTC (rev 21)
@@ -3,7 +3,7 @@
   * Non Maintainer Upload with knowledge of Maintainer
 
   Jeroen van Wolffelaar <jeroen@wolffelaar.nl>
-   * Check wether changelog is valid UTF-8 (Closes: #175318)
+   * Check whether changelog is valid UTF-8 (Closes: #175318)
      (Patch by: Colin Walters <walters@debian.org>)
    * Update to Debian Policy 3.6.1, all references broken by
      section-reorganization are updated (Closes: #194257, #208945, #214949,
@@ -17,6 +17,9 @@
      + Check for Subversion version control leftovers (Closes: #190067)
      + Ignore empty __init__.py files in /usr/share/doc (Closes: #215234)
        (based on patch by Frank Lichtenheld <djpig@debian.org>)
+   * checks/curft:
+     + Check for CVS and Subversion cruft in source packages (Closes: #189776,
+       also closes: #190067)
 
   Frank Lichtenheld <djpig@debian.org>
    * checks/debhelper:
@@ -33,8 +36,9 @@
        Choices is only a substitution variable (Closes: #200802,#222648)
      + fix testing of dependencies to eliminate false
        positives of missing-debconf-dependency (Closes: #195201)
+  * 
 
- -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl>  Mon,  9 Feb 2004 00:10:15 +0100
+ -- Jeroen van Wolffelaar <jeroen@wolffelaar.nl>  Mon,  9 Feb 2004 01:33:10 +0100
 
 lintian (1.22.9) unstable; urgency=low
 

Modified: trunk/testset/info_tags.filenames
===================================================================
--- trunk/testset/info_tags.filenames	2004-02-08 23:12:24 UTC (rev 20)
+++ trunk/testset/info_tags.filenames	2004-02-09 00:37:00 UTC (rev 21)
@@ -9,6 +9,12 @@
 N:   Standards-Version control field. However, please remember to update
 N:   this field next time you upload the package.
 N:
+W: filenames source: svn-commit-file-in-source files/svn-commit.tmp
+N:
+N:   Package source contains a 'svn-commit(.NNN).tmp' file. This file is
+N:   almost certainly a left-over from a failed Subversion commit, and does
+N:   not belong in a Debian package.
+N:
 E: filenames: non-standard-toplevel-dir files/
 N:
 N:   The Filesystem Hierarchy Standard forbids the installation of new

Modified: trunk/testset/tags.filenames
===================================================================
--- trunk/testset/tags.filenames	2004-02-08 23:12:24 UTC (rev 20)
+++ trunk/testset/tags.filenames	2004-02-09 00:37:00 UTC (rev 21)
@@ -1,4 +1,5 @@
 W: filenames source: ancient-standards-version 3.1.1
+W: filenames source: svn-commit-file-in-source files/svn-commit.tmp
 E: filenames: non-standard-toplevel-dir files/
 W: filenames: file-in-unusual-dir files/ .tif
 W: filenames: file-in-unusual-dir files/".tif



Reply to: