The following commit has been merged in the master branch:
commit fac9001392cfd3f150f3401f2838442d2aba4096
Author: Niels Thykier <[email protected]>
Date: Sun May 12 12:02:30 2013 +0200
c/debian-source-dir: Replace a bareword dir handle
Signed-off-by: Niels Thykier <[email protected]>
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
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]