Author: rra
Date: 2008-01-03 08:18:11 +0100 (Thu, 03 Jan 2008)
New Revision: 1100

Modified:
   trunk/checks/files
   trunk/debian/changelog
   trunk/testset/tags.filenames
Log:
* checks/files:
  + [RA] Ignore zero-length files in /usr/share/doc/examples.

Modified: trunk/checks/files
===================================================================
--- trunk/checks/files  2008-01-03 06:44:20 UTC (rev 1099)
+++ trunk/checks/files  2008-01-03 07:18:11 UTC (rev 1100)
@@ -213,9 +213,8 @@
 
                # zero byte file in /usr/share/doc/
                if ($size == 0 and $perm =~ m,^-, and not $is_hard_link{$file}) 
{
-                   # exception: __init__.py files are empty tagging files (see
-                   # bug #215234)
-                   unless ($file =~ 
m,^usr/share/doc/([^/]+/)?examples/(.+/)?__init__\.py$,) {
+                   # exception: examples may contain empty files for various 
reasons
+                   unless ($file =~ m,^usr/share/doc/([^/]+/)?examples/,) {
                        tag "zero-byte-file-in-doc-directory", "$file";
                    }
                }
@@ -872,4 +871,8 @@
 
 1;
 
+# Local Variables:
+# indent-tabs-mode: t
+# cperl-indent-level: 4
+# End:
 # vim: syntax=perl ts=8 sw=4

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-01-03 06:44:20 UTC (rev 1099)
+++ trunk/debian/changelog      2008-01-03 07:18:11 UTC (rev 1100)
@@ -22,6 +22,8 @@
   * checks/fields:
     + [RA] Handle double-colon rules when checking that build dependencies
       match debian/rules.  (Closes: #457501)
+  * checks/files:
+    + [RA] Ignore zero-length files in /usr/share/doc/examples.
   * checks/files.desc:
     + [RA] Remove a stray variable from the config-file-reserved tag.
   * checks/init.d{.desc,}:

Modified: trunk/testset/tags.filenames
===================================================================
--- trunk/testset/tags.filenames        2008-01-03 06:44:20 UTC (rev 1099)
+++ trunk/testset/tags.filenames        2008-01-03 07:18:11 UTC (rev 1100)
@@ -106,7 +106,6 @@
 W: filenames: wrong-name-for-debian-news-file 
usr/share/doc/filenames/news.debian.gz
 W: filenames: zero-byte-file-in-doc-directory 
usr/share/doc/filenames/NEWS.Debian
 W: filenames: zero-byte-file-in-doc-directory 
usr/share/doc/filenames/README.macosx
-W: filenames: zero-byte-file-in-doc-directory 
usr/share/doc/filenames/examples/very_interesting_example
 W: filenames: zero-byte-file-in-doc-directory 
usr/share/doc/filenames/examples/very_interesting_example2.gz
 W: filenames: zero-byte-file-in-doc-directory 
usr/share/doc/filenames/news.debian.gz
 W: more-filename-games: binary-without-manpage usr/bin/another-test-game


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to