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

[SCM] Debian package checker branch, master, updated. 2.5.9-37-g7fd9693



The following commit has been merged in the master branch:
commit 7fd9693894f7293d398dec76780afe50b3541457
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Jun 30 16:08:03 2012 +0200

    c/files: Handle case where gzipped file is empty
    
    A regression (presumbly) introduced in commit 88fb52b.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/checks/files b/checks/files
index 96adf81..af293d5 100644
--- a/checks/files
+++ b/checks/files
@@ -430,7 +430,7 @@ foreach my $file ($info->sorted_index) {
                     my $fd = open_gz ($info->unpacked ($file)) or fail "open $file: $!";
                     my $f = <$fd>;
                     close $fd;
-                    unless (length $f) {
+                    unless (defined $f and length $f) {
                         tag 'zero-byte-file-in-doc-directory', $file;
                     }
                 }

-- 
Debian package checker


Reply to: