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

[lintian] 01/02: harness: Open only one data file at a time



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

nthykier pushed a commit to branch master
in repository lintian.

commit 3d0533334863d744f9252fca6cd5c260889ba981
Author: Niels Thykier <niels@thykier.net>
Date:   Thu Sep 26 08:39:00 2013 +0200

    harness: Open only one data file at a time
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 reporting/harness |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/reporting/harness b/reporting/harness
index e2d3a03..1241e16 100755
--- a/reporting/harness
+++ b/reporting/harness
@@ -531,14 +531,15 @@ sub local_mirror_manifests {
                 my $binsub = sub {
                     _parse_pkgs_pg($active_srcs, $binman, $mirdir, $area, @_);
                 };
-                my $upkgfd = _open_data_file($upkgs);
+                my $upkgfd;
                 my $udebsub = sub {
                     _parse_pkgs_pg($active_srcs, $udebman, $mirdir, $area, @_);
                 };
                 visit_dpkg_paragraph($binsub, $pkgfd);
+                close($pkgfd);
+                $upkgfd = _open_data_file($upkgs);
                 visit_dpkg_paragraph($udebsub, $upkgfd);
-                close $pkgfd;
-                close $upkgfd;
+                close($upkgfd);
             }
             $srcfd = _open_data_file($srcs);
             $srcsub

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


Reply to: