[debhelper-devel] [debhelper] 01/03: dh_missing: Avoid slurping the files

Niels Thykier nthykier at moszumanska.debian.org
Sat Apr 8 10:34:05 UTC 2017


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

nthykier pushed a commit to branch master
in repository debhelper.

commit b2e9fdac7326a7b9480a534f761cc85e6cd7bde8
Author: Niels Thykier <niels at thykier.net>
Date:   Sat Apr 8 10:08:40 2017 +0000

    dh_missing: Avoid slurping the files
    
    Signed-off-by: Niels Thykier <niels at thykier.net>
---
 dh_missing | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dh_missing b/dh_missing
index 0041d51..fb3e4d8 100755
--- a/dh_missing
+++ b/dh_missing
@@ -99,11 +99,11 @@ if (! -d $srcdir) {
 }
 
 for my $file (<debian/.debhelper/generated/*/installed-by-*>) {
-	local $/ = undef;
 	my $helper = $file =~ s at .*/installed-by-@@r;
 	$helpers{$helper} = 1;
 	open(my $fh, '<', $file) or die "could not open $file: $!";
-	for my $line (split(/\n/, <$fh>)) {
+	while (my $line = <$fh>) {
+		chomp($line);
 		push(@installed, $line);
 	}
 	close($fh);

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




More information about the debhelper-devel mailing list