The following commit has been merged in the master branch:
commit ecd1472d8893e44e4df8271e1ea56245b21d9b6b
Author: Niels Thykier <[email protected]>
Date:   Sat Feb 4 14:53:31 2012 +0100

    cruft: Do now open symlinks when checking waf files
    
    Signed-off-by: Niels Thykier <[email protected]>

diff --git a/checks/cruft b/checks/cruft
index bafe8fa..54f4b4f 100644
--- a/checks/cruft
+++ b/checks/cruft
@@ -161,7 +161,7 @@ for my $file (keys(%$file_info)) {
             # file does not declare it as "data".
             my $path = $info->unpacked ($file);
             my $marker = 0;
-            next unless -f $path;
+            next unless -f $path and not -l $path;
             open my $fd, '<', $path or fail "Opening $file: $!";
             while ( my $line = <$fd> ) {
                 next unless $line =~ m/^#/o;

-- 
Debian package checker


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to