From dd21876e64db4eaf592297e97355ffdf87f7d2f6 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 18 Dec 2017 12:09:14 +0900 Subject: Update .uuid only when -r is given but not -f. --- fc-cache/fc-cache.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fc-cache') diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index 76059895..1cea5c70 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c @@ -188,7 +188,10 @@ scanDirs (FcStrList *list, FcConfig *config, FcBool force, FcBool really_force, was_processed = FcTrue; if (really_force) + { FcDirCacheUnlink (dir, config); + FcDirCacheCreateUUID ((FcChar8 *) dir, FcTrue, config); + } cache = NULL; was_valid = FcFalse; -- cgit v1.2.3