[debhelper-devel] [debhelper] 01/01: Dh_Lib: Fix use of undefined variable
Niels Thykier
nthykier at moszumanska.debian.org
Sat Jan 3 11:52:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit c4c9546acc2a7750e89213996b5c6d13422e1ba4
Author: Niels Thykier <niels at thykier.net>
Date: Sat Jan 3 12:52:11 2015 +0100
Dh_Lib: Fix use of undefined variable
Signed-off-by: Niels Thykier <niels at thykier.net>
---
Debian/Debhelper/Dh_Lib.pm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index 57caa3c..d870450 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -1118,18 +1118,18 @@ sub install_dh_config_file {
$mode = 0644 if not defined($mode);
if (!compat(8) and -x $source) {
- my @sstat = stat($source) || error("cannot stat $file: $!");
- open(my $tfd, '>', $target) || error("cannot open $file: $!");
- chmod($mode, $tfd) || error("cannot chmod $file: $!");
- open(my $sfd, '-|', $source) || error("cannot run $file: $!");
+ my @sstat = stat($source) || error("cannot stat $source: $!");
+ open(my $tfd, '>', $target) || error("cannot open $target: $!");
+ chmod($mode, $tfd) || error("cannot chmod $target: $!");
+ open(my $sfd, '-|', $source) || error("cannot run $source: $!");
while (my $line = <$sfd>) {
print ${tfd} $line;
}
if (!close($sfd)) {
- error("cannot close handle from $file: $!") if $!;
+ error("cannot close handle from $source: $!") if $!;
_error_exitcode($source);
}
- close($tfd) || error("cannot close $file: $!");
+ close($tfd) || error("cannot close $target: $!");
# Set the mtime (and atime) to ensure reproducibility.
utime($sstat[9], $sstat[9], $target);
} else {
--
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