[Git][reproducible-builds/diffoscope][master] Don't assume all files called ".a" are ELF binaries. This prevents an…

Chris Lamb gitlab at salsa.debian.org
Fri Nov 9 17:38:14 CET 2018


Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
a1b57f81 by Chris Lamb at 2018-11-09T16:37:09Z
Don't assume all files called ".a" are ELF binaries. This prevents an "Unrecognized archive format" traceback when processing (for example) lie 2.2.2+dfsg-3. (Closes: #903446)

- - - - -


1 changed file:

- diffoscope/comparators/elf.py


Changes:

=====================================
diffoscope/comparators/elf.py
=====================================
@@ -579,7 +579,6 @@ class StaticLibFile(File):
     DESCRIPTION = "statically-linked binaries"
     CONTAINER_CLASS = ElfContainer
     FILE_TYPE_RE = re.compile(r'\bar archive\b')
-    FILE_EXTENSION_SUFFIX = '.a'
 
     def compare_details(self, other, source=None):
         differences = [Difference.from_text_readers(



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/a1b57f8158ca0af72ed00e0a76ab6f50cc32f737

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/a1b57f8158ca0af72ed00e0a76ab6f50cc32f737
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20181109/e2980dcc/attachment.html>


More information about the rb-commits mailing list