[strip-nondeterminism] 01/01: bin/strip-nondeterminism: die if file does not exist (Closes: #800159)

Chris Lamb chris at chris-lamb.co.uk
Mon Sep 5 08:06:42 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 5a2c35dc79e8dc8bbfb4bbfb36fc57a2a494f89e
Author: Chris Lamb <lamby at debian.org>
Date:   Mon Sep 5 09:04:24 2016 +0100

    bin/strip-nondeterminism: die if file does not exist (Closes: #800159)
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 bin/strip-nondeterminism | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bin/strip-nondeterminism b/bin/strip-nondeterminism
index 2372d4e..3c1d3b4 100755
--- a/bin/strip-nondeterminism
+++ b/bin/strip-nondeterminism
@@ -59,6 +59,8 @@ $File::StripNondeterminism::clamp_time = $clamp_timestamp;
 die $usage if @ARGV == 0;
 
 for my $filename (@ARGV) {
+	die "$filename: Does not exist\n" unless -e $filename;
+
 	my $normalizer;
 	if (defined $filetype) {
 		$normalizer = File::StripNondeterminism::get_normalizer_by_name($filetype);

-- 
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