[Git][reproducible-builds/diffoscope][master] Add a missing call to File.recognizes so we actually perform the filename check.

Chris Lamb (@lamby) gitlab at salsa.debian.org
Wed Mar 20 11:26:24 UTC 2024



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
c6aa6ec8 by Chris Lamb at 2024-03-20T11:25:44+00:00
Add a missing call to File.recognizes so we actually perform the filename check.

- - - - -


1 changed file:

- diffoscope/comparators/rdata.py


Changes:

=====================================
diffoscope/comparators/rdata.py
=====================================
@@ -171,6 +171,9 @@ class RdbFile(File):
 
     @classmethod
     def recognizes(cls, file):
+        if not super().recognizes(file):
+            return False
+
         # file(1) does not yet support identifying R database files, so we
         # match on "data" AND the filename ends with .rdb (via
         # FILE_EXTENSION_SUFFIX above) to avoid matching, say, Redis database



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

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/c6aa6ec86ed57dce55a4e2408f20567439f6d47a
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/20240320/35bc8334/attachment.htm>


More information about the rb-commits mailing list