Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rar detection for file-5.46, Consolidate mime types where reasonable #173

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

parona-source
Copy link
Contributor

@parona-source parona-source commented Dec 11, 2024

While adding application/vnd.rar I found it to be nicer to remove unnecessary mime types and to use the most "official" ones available.

@parona-source parona-source marked this pull request as ready for review December 11, 2024 05:26
application/vnd.rar is the IANA assigned mime type for rar. libmagic has
never refered to application/rar either, so there is no use for backwards
compatibility.

https://www.iana.org/assignments/media-types/application/vnd.rar

Signed-off-by: Alfred Wingate <[email protected]>
libmagic has never referred to x-redhat-package-manager and has had
x-rpm since 3.30. Red Hat themselves use x-rpm in their mailcap.

https://pagure.io/mailcap/blob/master/f/mime.types

Signed-off-by: Alfred Wingate <[email protected]>
@malikwirin
Copy link

This patch is already being used downstream in nixpkgs since this PR

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.

2 participants