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

[SCM] Debian package checker branch, master, updated. 2.5.4-142-gecd1472



The following commit has been merged in the master branch:
commit ecd1472d8893e44e4df8271e1ea56245b21d9b6b
Author: Niels Thykier <niels@thykier.net>
Date:   Sat Feb 4 14:53:31 2012 +0100

    cruft: Do now open symlinks when checking waf files
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

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


Reply to: