[Reproducible-commits] [strip-nondeterminism] 01/02: Include name of file that caused error in error messages

Andrew Ayer agwa at andrewayer.name
Fri Jul 17 16:40:58 UTC 2015


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

agwa-guest pushed a commit to branch master
in repository strip-nondeterminism.

commit 757557f5d69e1184fe37fe57966ef8da57dca97a
Author: Andrew Ayer <agwa at andrewayer.name>
Date:   Thu Jul 16 20:42:56 2015 -0700

    Include name of file that caused error in error messages
---
 bin/dh_strip_nondeterminism | 2 +-
 bin/strip-nondeterminism    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/dh_strip_nondeterminism b/bin/dh_strip_nondeterminism
index 01b4ad7..86614a9 100755
--- a/bin/dh_strip_nondeterminism
+++ b/bin/dh_strip_nondeterminism
@@ -77,7 +77,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 
 	foreach (@nondeterministic_files) {
 		my ($path, $normalize) = @$_;
-		$normalize->($path);
+		eval { $normalize->($path); 1 } or die "dh_strip_nondeterminism: $path: $@";
 	}
 }
 
diff --git a/bin/strip-nondeterminism b/bin/strip-nondeterminism
index a42f72d..3ea5df9 100755
--- a/bin/strip-nondeterminism
+++ b/bin/strip-nondeterminism
@@ -64,7 +64,7 @@ for my $filename (@ARGV) {
 		next unless $normalizer;
 	}
 
-	$normalizer->($filename);
+	eval { $normalizer->($filename); 1 } or die "strip-nondeterminism: $filename: $@";
 }
 
 __END__

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