aboutsummaryrefslogtreecommitdiffstats
path: root/fontconfig.prov
diff options
context:
space:
mode:
Diffstat (limited to 'fontconfig.prov')
-rwxr-xr-xfontconfig.prov8
1 files changed, 5 insertions, 3 deletions
diff --git a/fontconfig.prov b/fontconfig.prov
index 73f345c..bfb6ea0 100755
--- a/fontconfig.prov
+++ b/fontconfig.prov
@@ -1,7 +1,7 @@
#!/bin/bash
#
# Script to install in:
-# /usr/lib/rpm/mageia/find-provides.d
+# /usr/lib/rpm/redhat/find-provides.d
#
# Transform font files into RPM provides
# Requires fontconfig >= 2.6.90
@@ -12,11 +12,13 @@
fcquery=/usr/bin/fc-query
-[ -x $fcquery ] || exit 0
+if [ ! -x $fcquery ]; then
+ cat > /dev/null
+ exit 0
+fi
# filter out anything outside main fontconfig path
grep /usr/share/fonts/ |
while read fn; do
$fcquery --format '%{=pkgkit}' "${fn}" 2> /dev/null
done
-exit 0