https://bugs.kde.org/show_bug.cgi?id=458908

Elvis Angelaccio <elvis.angelac...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/util
                   |                            |ities/ark/commit/69453c8398
                   |                            |74d0756add49910d17268a8c7b0
                   |                            |59c
   Version Fixed In|                            |22.12.0
         Resolution|---                         |FIXED
             Status|CONFIRMED                   |RESOLVED

--- Comment #5 from Elvis Angelaccio <elvis.angelac...@kde.org> ---
Git commit 69453c839874d0756add49910d17268a8c7b059c by Elvis Angelaccio.
Committed on 02/11/2022 at 22:59.
Pushed by elvisangelaccio into branch 'master'.

Enable libarchive raw format to support "single-file" archives

libarchive provides a "raw format" that returns a single fake entry
called 'data' and the data for that entry is the whole input archive.

We can use this raw format to handle the "single-file" archives for
which we had the special KArchive-based singlefile plugins.
The advantage is that libarchive supports more formats than KArchive. In
particular with this commit we add support for the following new
formats that KArchive cannot handle:

- application/zlib
- application/x-lz4
- application/x-lzip
- application/x-lrzip
- application/x-lzop

Note 1: This fake 'data' entry requires a bunch of small changes in different
places, for which we use the recently 'displayName' property of
Archive::Entry.

Note 2: the documentation of archive_read_support_format_raw says that
it should not be always enabled, so we only enable it if we have a
"single-file" mimetype. For this purpose we generate in cmake a
LIBARCHIVE_RAW_MIMETYPES define that will be automatically updated when
adding new future mimetypes.
FIXED-IN: 22.12.0

M  +1    -1    kerfuffle/archiveentry.cpp
M  +1    -1    kerfuffle/archiveentry.h
M  +9    -1    kerfuffle/jobs.cpp
M  +1    -1    part/archivemodel.cpp
M  +1    -2    part/arkviewer.cpp
M  +1    -1    part/arkviewer.h
M  +3    -6    part/infopanel.cpp
M  +7    -1    part/part.cpp
M  +18   -0    plugins/libarchive/CMakeLists.txt
M  +79   -29   plugins/libarchive/libarchiveplugin.cpp
M  +3    -1    plugins/libarchive/libarchiveplugin.h

https://invent.kde.org/utilities/ark/commit/69453c839874d0756add49910d17268a8c7b059c

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to