[Reproducible-commits] [strip-nondeterminism] 05/05: Unlink tempfile in the correct scope.
Chris Lamb
chris at chris-lamb.co.uk
Sun Jul 24 11:41:10 UTC 2016
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository strip-nondeterminism.
commit ebb1f5b82a84046ae4770cb1e4ba939a8bbaf6f2
Author: Chris Lamb <lamby at debian.org>
Date: Sun Jul 24 12:40:45 2016 +0100
Unlink tempfile in the correct scope.
Signed-off-by: Chris Lamb <lamby at debian.org>
---
lib/File/StripNondeterminism/handlers/png.pm | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/File/StripNondeterminism/handlers/png.pm b/lib/File/StripNondeterminism/handlers/png.pm
index 87235cd..f243a66 100644
--- a/lib/File/StripNondeterminism/handlers/png.pm
+++ b/lib/File/StripNondeterminism/handlers/png.pm
@@ -59,10 +59,9 @@ sub normalize {
chmod((stat($fh))[2] & 07777, $tempfile->filename);
rename($tempfile->filename, $filename)
or die "$filename: unable to overwrite: rename: $!";
+ $tempfile->unlink_on_destroy(0);
}
- $tempfile->unlink_on_destroy(0);
-
close $fh;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/strip-nondeterminism.git
More information about the Reproducible-commits
mailing list