[Git][reproducible-builds/diffoscope][master] Fix regression where we stopped using the -dbgsym packages when comparing...
Chris Lamb
gitlab at salsa.debian.org
Fri Feb 8 17:26:47 CET 2019
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
22559212 by Chris Lamb at 2019-02-08T16:26:18Z
Fix regression where we stopped using the -dbgsym packages when comparing .buildinfo or .changes files. (Closes: reproducible-builds/diffoscope:#44)
- - - - -
1 changed file:
- diffoscope/comparators/elf.py
Changes:
=====================================
diffoscope/comparators/elf.py
=====================================
@@ -469,7 +469,7 @@ class ElfContainer(Container):
)
raise OutputParsingError(command, self)
- if not has_debug_symbols and Config().use_dbgsym:
+ if not has_debug_symbols:
self._install_debug_symbols()
@tool_required('objcopy')
@@ -485,6 +485,15 @@ class ElfContainer(Container):
if not isinstance(deb, DebFile) or not deb.container:
return
+ # If the .deb in question is the top-level of the source we have passed
+ # a .deb directly to diffoscope (versus finding one specified in a
+ # .changes or .buildinfo file). In this case, don't automatically
+ # search for a -dbgsym file unless the user specified
+ # `Config().use_dbgsym`.
+ if not hasattr(deb.container.source, 'container') and \
+ not Config().use_dbgsym:
+ return
+
# Retrieve the Build ID for the ELF file we are examining
build_id = get_build_id(self.source.path)
debuglink = get_debug_link(self.source.path)
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/22559212ba38b65f6a13480652cbd679dff6cd97
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/22559212ba38b65f6a13480652cbd679dff6cd97
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/20190208/31112d87/attachment.html>
More information about the rb-commits
mailing list