Package: atool
Version: 0.39.0-2
Severity: wishlist

Dear Maintainer,

I wanted to compare the contents of two LibreOffice/OpenOffice.org
extensions which are distributed as ZIP archives with file suffix .oxt:

$ adiff canzeley-client-0.4.0.oxt ../upstream/canzeley_0.4.0.oxt
adiff: ../upstream/canzeley_0.4.0.oxt: unsupported file format `empty 
(Microsoft OOXML)'
$ mv -vi canzeley-client-0.4.0.oxt canzeley-client-0.4.0.zip ; mv -vi 
../upstream/canzeley_0.4.0.oxt ../upstream/canzeley_0.4.0.zip
`canzeley-client-0.4.0.oxt' -> `canzeley-client-0.4.0.zip'
`../upstream/canzeley_0.4.0.oxt' -> `../upstream/canzeley_0.4.0.zip'
$ adiff canzeley-client-0.4.0.zip ../upstream/canzeley_0.4.0.zip
diff -ru Unpack-7904/description.xml Unpack-1109/description.xml
--- Unpack-7904/description.xml 2014-05-18 21:31:12.000000000 +0200
+++ Unpack-1109/description.xml 2014-04-20 15:57:10.000000000 +0200
@@ -8,4 +8,9 @@
        <!-- <dependencies>
                <OpenOffice.org-minimal-version value="2.1" 
dep:name="OpenOffice.org 2.1"/>
        </dependencies> -->
+       <registration>
+               <simple-license  accept-by="admin" default-license-id="ID0" 
suppress-on-update="true" >
+                       <license-text xlink:href="registration/gplv3.txt" 
lang="en" license-id="ID0" />
+               </simple-license>
+       </registration>
 </description>
Only in Unpack-1109: Extension
$ 

so the content was not an issue, just the file suffix. Please support
the common LibreOffice/OpenOffice.org file suffixes (I know at least of
odt, ods, odp, odb, odg, odf, and oxt) which are ZIP files or even
better, generally all files which are ZIP archives, independent of the
file name suffix.

(This is probably a very similar case as https://bugs.debian.org/530812
and would also be solved if https://bugs.debian.org/530813 would be
solved, but can be fixed separately as it has been done for #530812.)

P.S.: I must admit that at least for ODT files an awdiff tool would make
more sense then adiff since the compressed XML in there seems to have no
newlines at all:

$ adiff /tmp/foo.odt /tmp/bla.odt
adiff: /tmp/foo.odt: unsupported file format `ASCII text, with no line 
terminators (OpenDocument Text)'
$ mv -vi /tmp/bla.odt /tmp/bla.zip; mv -vi /tmp/foo.odt /tmp/foo.zip
`/tmp/bla.odt' -> `/tmp/bla.zip'
`/tmp/foo.odt' -> `/tmp/foo.zip'
$ adiff /tmp/foo.zip /tmp/bla.zip | cut -c-75
diff -ru Unpack-5671/content.xml Unpack-0120/content.xml
--- Unpack-5671/content.xml     2014-05-18 21:26:22.000000000 +0200
+++ Unpack-0120/content.xml     2014-05-18 21:25:52.000000000 +0200
@@ -1,2 +1,2 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xml
\ No newline at end of file
+<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xml
\ No newline at end of file
diff -ru Unpack-5671/meta.xml Unpack-0120/meta.xml
--- Unpack-5671/meta.xml        2014-05-18 21:26:22.000000000 +0200
+++ Unpack-0120/meta.xml        2014-05-18 21:25:52.000000000 +0200
@@ -1,2 +1,2 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:
\ No newline at end of file
+<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:
\ No newline at end of file
diff -ru Unpack-5671/settings.xml Unpack-0120/settings.xml
--- Unpack-5671/settings.xml    2014-05-18 21:26:22.000000000 +0200
+++ Unpack-0120/settings.xml    2014-05-18 21:25:52.000000000 +0200
@@ -1,2 +1,2 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<office:document-settings xmlns:office="urn:oasis:names:tc:opendocument:xm
\ No newline at end of file
+<office:document-settings xmlns:office="urn:oasis:names:tc:opendocument:xm
\ No newline at end of file
Binary files Unpack-5671/Thumbnails/thumbnail.png and Unpack-0120/Thumbnail
$

I'll likely file a separate bug report for the awdiff wish. :-)

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (110, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages atool depends on:
ii  perl  5.18.2-4

Versions of packages atool recommends:
ii  bash-completion  1:2.1-4
ii  binutils         2.24.51.20140425-1
ii  bzip2            1.0.6-5
ii  file             1:5.18-1
ii  lbzip2           2.5-1
ii  pbzip2           1.1.8-1
ii  unzip            6.0-12
ii  zip              3.0-8

Versions of packages atool suggests:
ii  arc              5.21q-1
ii  arj              3.10.22-11
ii  cpio             2.11+dfsg-2
ii  lzip             1.16~pre1-2
ii  lzop             1.03-3
ii  nomarch          1.4-3
pn  p7zip            <none>
ii  rar              2:4.2.0-1
ii  rpm              4.11.2-3
ii  unace            1.2b-11
ii  unalz            0.65-4
ii  unrar            1:5.0.10-1
ii  xz-utils [lzma]  5.1.1alpha+20120614-2

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to