[reprotest] 01/01: When a reproduction succeeds, only output hashes of the artifacts

Ximin Luo infinity0 at debian.org
Sat Jan 7 16:38:23 UTC 2017


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

infinity0 pushed a commit to branch master
in repository reprotest.

commit 3e5d18c0a3cc6f6403650140b453ec426f00231a
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sat Jan 7 17:38:08 2017 +0100

    When a reproduction succeeds, only output hashes of the artifacts
---
 debian/changelog      | 3 ++-
 reprotest/__init__.py | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f16d2f8..063b9b0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 reprotest (0.6) UNRELEASED; urgency=medium
 
-  * 
+  * When a reproduction succeeds, only output hashes of the artifacts rather
+    than everything in the current directory.
 
  -- Ximin Luo <infinity0 at debian.org>  Sat, 07 Jan 2017 17:15:42 +0100
 
diff --git a/reprotest/__init__.py b/reprotest/__init__.py
index 7418300..db3e254 100644
--- a/reprotest/__init__.py
+++ b/reprotest/__init__.py
@@ -483,7 +483,7 @@ def check(build_command, artifact_pattern, virtual_server_args, source_root,
             print("Reproduction successful")
             print("=======================")
             print("No differences in %s" % artifact_pattern, flush=True)
-            run_or_tee(['find', '.', '-type', 'f', '-exec', 'sha256sum', '{}', ';'],
+            run_or_tee(['sh', '-ec', 'find %s -type f -exec sha256sum "{}" \;' % artifact_pattern],
                 'SHA256SUMS', store_dir,
                 cwd=result.control)
 

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



More information about the Reproducible-commits mailing list