summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2023-03-15 19:15:00 +0100
committerPanu Matilainen <pmatilai@redhat.com>2023-03-16 14:16:33 +0200
commit4e244280db8d780ac90313785598487f888b8924 (patch)
tree65c4dcfe5e48a77027352527527993c3bed6f15f /build
parentf93190e15ccb0789c33e8469e71e3ee40f3928fa (diff)
downloadrpm-4e244280db8d780ac90313785598487f888b8924.tar.gz
add more libmagic exceptions for HTML, SVG and PNG
I noticed there are ~150K .html files in all libreoffice rpm files and the detection is significantly delaying package build. Thus, I introduce more exceptions for commonly used file formats.
Diffstat (limited to 'build')
-rw-r--r--build/rpmfc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/rpmfc.c b/build/rpmfc.c
index 763a68603..cd9e64348 100644
--- a/build/rpmfc.c
+++ b/build/rpmfc.c
@@ -1181,6 +1181,9 @@ static const struct skipped_extension_s skipped_extensions[] = {
{ ".h", "C Header", "text/x-c" },
{ ".la", "libtool library file", "text/plain" },
{ ".pc", "pkgconfig file", "text/plain" },
+ { ".html", "HTML document", "text/html" },
+ { ".png", "PNG image data", "image/png" },
+ { ".svg", "SVG Scalable Vector Graphics image", "image/svg+xml" },
{ NULL, NULL, NULL }
};