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

[SCM] Debian package checker branch, master, updated. 2.5.12-77-gfac9001



The following commit has been merged in the master branch:
commit fac9001392cfd3f150f3401f2838442d2aba4096
Author: Niels Thykier <niels@thykier.net>
Date:   Sun May 12 12:02:30 2013 +0200

    c/debian-source-dir: Replace a bareword dir handle
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/checks/debian-source-dir b/checks/debian-source-dir
index c6dc0c7..015f269 100644
--- a/checks/debian-source-dir
+++ b/checks/debian-source-dir
@@ -72,14 +72,13 @@ if ( ! -l "$dsrc/git-patches" && -s "$dsrc/git-patches") {
 }
 
 if ( ! -l $dsrc && -d $dsrc ) {
-    opendir(DEBSRC, $dsrc);
-    my $file;
-    while ($file = readdir(DEBSRC)) {
+    opendir(my $dirfd, $dsrc);
+    while (my $file = readdir($dirfd)) {
         next if $file eq '.' or $file eq '..';
         tag 'unknown-file-in-debian-source', $file
             unless $KNOWN_FILES->known($file);
     }
-    closedir(DEBSRC);
+    closedir($dirfd);
 }
 
 }

-- 
Debian package checker


Reply to: