[Rpm-maint] [rpm-software-management/rpm] Use libelf for determining file colors (#1095)

Panu Matilainen notifications at github.com
Wed Mar 4 09:32:50 UTC 2020


libmagic strings are notoriously unreliable as the details from version
to version. We link to libelf anyway so we might as well as get the
info straight from the horse's mouth.

Besides being more reliable, this detaches the coloring business from
the hardcoded rpmfcTokens struct and informative-only FILECLASS contents,
opening the door for other changes in that area.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1095

-- Commit Summary --

  * Use libelf for determining file colors

-- File Changes --

    M build/rpmfc.c (35)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1095.patch
https://github.com/rpm-software-management/rpm/pull/1095.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1095
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200304/aa123aa6/attachment.html>


More information about the Rpm-maint mailing list