[devscripts] 01/01: debrepro: Use cmp to check for binary differences

James McCoy jamessan at debian.org
Sun Sep 4 18:40:09 UTC 2016


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 <jamessan at debian.org>
Date:   Sun Sep 4 14:38:15 2016 -0400

    debrepro: Use cmp to check for binary differences
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 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 <pabs at debian.org>  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



More information about the devscripts-devel mailing list