[Reproducible-commits] [debbindiff] 04/10: Fix terminating condition in are_same_binaries

Jérémy Bobbio lunar at moszumanska.debian.org
Mon Sep 29 18:29:23 UTC 2014


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

lunar pushed a commit to branch master
in repository debbindiff.

commit 4249ae230727fb110d5a08f55f73550aac2b169c
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Mon Sep 29 18:12:08 2014 +0200

    Fix terminating condition in are_same_binaries
---
 debbindiff/comparators/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debbindiff/comparators/utils.py b/debbindiff/comparators/utils.py
index 2a49485..cc31f45 100644
--- a/debbindiff/comparators/utils.py
+++ b/debbindiff/comparators/utils.py
@@ -34,7 +34,7 @@ def are_same_binaries(path1, path2):
         buf1 = f1.read(BUF_SIZE)
         buf2 = f2.read(BUF_SIZE)
         if not buf1 or not buf2:
-            return False
+            return not buf1 and not buf2
         h1.update(buf1)
         h2.update(buf2)
         if h1.digest() != h2.digest():

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



More information about the Reproducible-commits mailing list