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

[lintian] 02/02: c/files.pm: Re-instate dir_counts (it had other callers)



This is an automated email from the git hooks/post-receive script.

nthykier pushed a commit to branch master
in repository lintian.

commit 5e4ce4eefbcad1e80246a2db916792a3ec9ac28a
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Sep 24 10:31:41 2013 +0200

    c/files.pm: Re-instate dir_counts (it had other callers)
    
    In commit 82079ea, I overlooked two other calls of dir_counts.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/files.pm |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/checks/files.pm b/checks/files.pm
index 386d314..e862124 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -1690,6 +1690,14 @@ sub run {
     return;
 }
 
+sub dir_counts {
+    my ($info, $filename) = @_;
+    if (my $file = $info->index($filename)) {
+        return scalar($file->children);
+    }
+    return 0;
+}
+
 1;
 
 # Local Variables:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: