[Reproducible-commits] [debbindiff] 01/01: Return no differences when there's none even when tool is unavailable

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Jul 30 09:30:38 UTC 2015


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

lunar pushed a commit to branch master
in repository debbindiff.

commit b0c0312369cf7ecfc30870c239895e731a993367
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu Jul 30 09:29:58 2015 +0000

    Return no differences when there's none even when tool is unavailable
---
 debbindiff/comparators/binary.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debbindiff/comparators/binary.py b/debbindiff/comparators/binary.py
index ba403ef..afa19a0 100644
--- a/debbindiff/comparators/binary.py
+++ b/debbindiff/comparators/binary.py
@@ -177,6 +177,8 @@ class File(object):
                     % (cmd, e.returncode, output)
             except RequiredToolNotFound as e:
                 difference = self.compare_bytes(other, source=source)
+                if difference is None:
+                    return None
                 difference.comment = (difference.comment or '') + \
                     "'%s' not available in path. Falling back to binary comparison." % e.command
                 package = e.get_package()

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