[diffoscope] 01/01: Return '0' as the version if we can't parse one; it should be harmless.

Chris Lamb chris at chris-lamb.co.uk
Tue Jan 16 06:28:42 CET 2018


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

lamby pushed a commit to branch master
in repository diffoscope.

commit 34b54b496b64fceebd60e984445b7e0e9fda9312
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Jan 16 16:27:29 2018 +1100

    Return '0' as the version if we can't parse one; it should be harmless.
---
 tests/comparators/test_elf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/comparators/test_elf.py b/tests/comparators/test_elf.py
index c9e25d9..79d78c7 100644
--- a/tests/comparators/test_elf.py
+++ b/tests/comparators/test_elf.py
@@ -51,8 +51,9 @@ def readelf_version():
         out.decode('utf-8'),
     )
 
+    # Return '0' as the version if we can't parse one; it should be harmless.
     if m is None:
-        return 'unknown'
+        return '0'
 
     return m.group('version')
 

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


More information about the diffoscope mailing list