Author: schoenfeld
Date: 2009-07-21 12:09:15 +0000 (Tue, 21 Jul 2009)
New Revision: 1931

Modified:
   trunk/debian/changelog
   trunk/scripts/licensecheck.pl
Log:
licensecheck: Skip empty files instead of reporting that they don't
have a copyright (Closes: #535337)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2009-07-21 11:53:26 UTC (rev 1930)
+++ trunk/debian/changelog      2009-07-21 12:09:15 UTC (rev 1931)
@@ -31,8 +31,10 @@
       dependencies
   * dscverify: Implement a --verbose option to disable suppressing
     of GPG output (Closes: #525670)
+  * licensecheck: Skip empty files instead of reporting that they don't
+    have a copyright (Closes: #535337)
 
- -- Patrick Schoenfeld <[email protected]>  Tue, 21 Jul 2009 13:52:10 +0200
+ -- Patrick Schoenfeld <[email protected]>  Tue, 21 Jul 2009 14:08:26 +0200
 
 devscripts (2.10.52) unstable; urgency=low
 

Modified: trunk/scripts/licensecheck.pl
===================================================================
--- trunk/scripts/licensecheck.pl       2009-07-21 11:53:26 UTC (rev 1930)
+++ trunk/scripts/licensecheck.pl       2009-07-21 12:09:15 UTC (rev 1931)
@@ -254,6 +254,8 @@
        while (<FIND>) {
            chomp;
            next unless m%$opt_check_regex%;
+           # Skip empty files
+           next if (-z $_);
            push @files, $_ unless m%$opt_ignore_regex%;
        }
        close FIND;



-- 
To unsubscribe, send mail to [email protected].

Reply via email to