[Git][reproducible-builds/diffoscope][master] Don't leak the (likely-temporary) pathname when comparing PDF documents.
Chris Lamb (@lamby)
gitlab at salsa.debian.org
Tue Jun 21 07:29:12 UTC 2022
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
7252c305 by Chris Lamb at 2022-06-21T08:28:36+01:00
Don't leak the (likely-temporary) pathname when comparing PDF documents.
- - - - -
1 changed file:
- diffoscope/comparators/pdf.py
Changes:
=====================================
diffoscope/comparators/pdf.py
=====================================
@@ -67,8 +67,8 @@ class PdfFile(File):
difference = Difference.from_text(
self.dump_pypdf2_metadata(self),
self.dump_pypdf2_metadata(other),
- self.path,
- other.path,
+ self.name,
+ other.name,
)
if difference:
difference.add_comment("Document info")
@@ -77,8 +77,8 @@ class PdfFile(File):
difference = Difference.from_text(
self.dump_pypdf2_annotations(self),
self.dump_pypdf2_annotations(other),
- self.path,
- other.path,
+ self.name,
+ other.name,
)
if difference:
difference.add_comment("Annotations")
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/7252c305bb5cbe04b60458a17a6b5cbdc3050e54
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/7252c305bb5cbe04b60458a17a6b5cbdc3050e54
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/20220621/4e3fa596/attachment.htm>
More information about the rb-commits
mailing list