Skip to content
Snippets Groups Projects

zip archives: keep individual files compression type

Closed Denis Carikli requested to merge GNUtoo/mat2:master into master
1 unresolved thread

While hardcoding the compression to zipfile.ZIP_DEFLATED works for most use cases of mat, being able to produce cleaned up uncompressed zip files is useful for content that cannot be compressed more.

In addition it also enables to use mat2 for reproducible builds of Android bootanimation files file that don't support compression.

Signed-off-by: Denis 'GNUtoo' Carikli GNUtoo@cyberdimension.org

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
120 120 # pylint: disable=unused-argument
121 121 return member
122 122
123 @staticmethod
124 def _get_member_compression(member: ArchiveMember):
125 """Get the compression of the archive member."""
  • Can you please add some tests for this?

  • Denis Carikli added 1 commit

    added 1 commit

    • a079fa7c - zip archives: keep individual files compression type

    Compare with previous version

  • Denis Carikli added 1 commit

    added 1 commit

    • e8970f1c - zip archives: keep individual files compression type

    Compare with previous version

  • closed

  • Please register or sign in to reply
    Loading