Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[xsrc/trunk]: xsrc/external/mit/fontconfig/dist/src Do not remove UUID file w...



details:   https://anonhg.NetBSD.org/xsrc/rev/6cd4aa30d748
branches:  trunk
changeset: 10276:6cd4aa30d748
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Thu May 16 09:59:37 2019 +0000

description:
Do not remove UUID file when a scanned directory is empty.

pulled from the following upstream change:
https://gitlab.freedesktop.org/fontconfig/fontconfig/commit/5f12f564f8748deaa603adb7a4b8f616b6390ad4

It fixes that a cache file for an empty font directory is created
every time fc-cache is executed.

diffstat:

 external/mit/fontconfig/dist/src/fcdir.c |  7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diffs (17 lines):

diff -r 8535dd7f620b -r 6cd4aa30d748 external/mit/fontconfig/dist/src/fcdir.c
--- a/external/mit/fontconfig/dist/src/fcdir.c  Wed May 15 18:29:21 2019 +0000
+++ b/external/mit/fontconfig/dist/src/fcdir.c  Thu May 16 09:59:37 2019 +0000
@@ -421,13 +421,6 @@
     /* Not using existing cache file, construct new cache */
     if (!cache)
        cache = FcDirCacheScan (dir, config);
-    if (cache)
-    {
-       FcFontSet *fs = FcCacheSet (cache);
-
-       if (cache->dirs_count == 0 && (!fs || fs->nfont == 0))
-           FcDirCacheDeleteUUID (dir, config);
-    }
 
     return cache;
 }



Home | Main Index | Thread Index | Old Index