[Reproducible-commits] [diffoscope] 01/05: Fix handling of malformed md5sums file

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Sep 24 09:38:07 UTC 2015


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

lunar pushed a commit to branch master
in repository diffoscope.

commit b3de2639127ba2d329e0e8f93a38f8a906db4f16
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu Sep 24 09:11:36 2015 +0000

    Fix handling of malformed md5sums file
    
    A case typo made diffoscope crash instead of reporting the error.
    
    Closes: #799901
---
 diffoscope/comparators/deb.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/diffoscope/comparators/deb.py b/diffoscope/comparators/deb.py
index 5b8e36e..0388ecb 100644
--- a/diffoscope/comparators/deb.py
+++ b/diffoscope/comparators/deb.py
@@ -121,8 +121,8 @@ class Md5sumsFile(File):
                               comment="Files in package differs")
         except ValueError as e:
             difference = self.compare_bytes(other)
-            difference.add_comment('Malformed md5sums file')
-            return Difference
+            difference.add_comment('Malformed md5sums file: %s' % e)
+            return difference
 
 
 class DebTarContainer(TarContainer):

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



More information about the Reproducible-commits mailing list