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

jamessan pushed a commit to branch master
in repository devscripts.

commit 061d27c52adb9e1c206924102c4f6e5bcd35de51
Author: James McCoy <[email protected]>
Date:   Sun Sep 4 14:38:15 2016 -0400

    debrepro: Use cmp to check for binary differences
    
    Signed-off-by: James McCoy <[email protected]>
---
 debian/changelog    | 2 +-
 scripts/debrepro.sh | 4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4b62318..9ca4ce7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,7 +7,7 @@ devscripts (2.16.8) UNRELEASED; urgency=medium
 
   [ Antonio Terceiro ]
   * New script: debrepro, a simple reproducibility tester specific for Debian
-    packages.
+    packages.  (Closes: #786755)
 
  -- Paul Wise <[email protected]>  Sat, 27 Aug 2016 13:58:14 +0800
 
diff --git a/scripts/debrepro.sh b/scripts/debrepro.sh
index 70e97c7..974dc85 100755
--- a/scripts/debrepro.sh
+++ b/scripts/debrepro.sh
@@ -109,9 +109,7 @@ build() {
 }
 
 binmatch() {
-  local h1=$(sha1sum "$1" | awk '{print($1)}')
-  local h2=$(sha1sum "$2" | awk '{print($1)}')
-  test "$h1" = "$h2"
+  cmp -q "$1" "$2"
 }
 
 compare() {

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/collab-maint/devscripts.git

_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel

Reply via email to