[Rpm-maint] [rpm-software-management/rpm] Avoid libmagic calculation for source files (PR #1951)
Dirk Mueller
notifications at github.com
Wed Mar 9 14:24:53 UTC 2022
@dirkmueller commented on this pull request.
> ftype = "Perl5 module source text";
-
+ fmime = "text/plain";
+ } else if (rpmFileHasSuffix(s, ".c")) {
+ ftype = "C Code";
+ fmime = "text/x-c";
+ } else if (rpmFileHasSuffix(s, ".h")) {
+ ftype = "C Header";
+ fmime = "text/x-c";
+ }
/* XXX all files with extension ".la" are libtool for now. */
else if (rpmFileHasSuffix(s, ".la"))
ftype = "libtool library file";
missing `fmime` assignment?
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1951#pullrequestreview-904434779
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1951/review/904434779 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220309/4ef952b6/attachment.html>
More information about the Rpm-maint
mailing list