[diffoscope] 01/01: Add rudimentary support for OpenDocumentFormat files

Reiner Herrmann reiner at reiner-h.de
Sun Oct 16 13:30:01 CEST 2016

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

deki-guest pushed a commit to branch master
in repository diffoscope.

commit 5ddf660dbb9e018a0eaf41345920b874e9a4bc66
Author: Michel Messerschmidt <ironicx at virtualfreedom.de>
Date:   Tue Oct 11 19:11:46 2016 +0200

    Add rudimentary support for OpenDocumentFormat files
    The small patch below just treats ODF files as Zip files.
    More useful output probably needs XML parsing...
 diffoscope/comparators/zip.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/zip.py b/diffoscope/comparators/zip.py
index 6ca3783..c551974 100644
--- a/diffoscope/comparators/zip.py
+++ b/diffoscope/comparators/zip.py
@@ -102,7 +102,7 @@ class ZipContainer(Archive):
 class ZipFile(File):
     CONTAINER_CLASS = ZipContainer
-    RE_FILE_TYPE = re.compile(r'^(Zip archive|Java archive|EPUB document)\b')
+    RE_FILE_TYPE = re.compile(r'^(Zip archive|Java archive|EPUB document|OpenDocument (Text|Spreadsheet|Presentation|Drawing|Formula|Template|Text Template))\b')
     def recognizes(file):

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

More information about the diffoscope mailing list