Skip to content

Arch Linux: Detect compression with tree_magic - #62

Merged
kpcyrd merged 1 commit into
mainfrom
detect-compression
Aug 4, 2021
Merged

Arch Linux: Detect compression with tree_magic#62
kpcyrd merged 1 commit into
mainfrom
detect-compression

Conversation

@kpcyrd

@kpcyrd kpcyrd commented Aug 4, 2021

Copy link
Copy Markdown
Owner

This does mime-type detection with tree_magic and then picks the right decompressor from:

  • gzip
  • bzip2
  • xz
  • zstd

Everything else is passed through as-is since "no compression" seems to be supported too in repo-add.

Resolves #61 (@adityasaky)

@adityasaky

Copy link
Copy Markdown
Contributor

This is awesome, thanks!

@kpcyrd
kpcyrd merged commit 1379fbf into main Aug 4, 2021
@kpcyrd
kpcyrd deleted the detect-compression branch August 4, 2021 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for other compression formats for the repository database

2 participants