summaryrefslogtreecommitdiff
path: root/fc-cache
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2017-12-18 12:09:14 +0900
committerAkira TAGOH <akira@tagoh.org>2017-12-18 12:11:21 +0900
commitdd21876e64db4eaf592297e97355ffdf87f7d2f6 (patch)
tree4d844934b9e39097e416ad981c171217974d80bc /fc-cache
parentdd1a92911b1abc4c266ad33d88ec8161342f0d69 (diff)
Update .uuid only when -r is given but not -f.
Diffstat (limited to 'fc-cache')
-rw-r--r--fc-cache/fc-cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c
index 7605989..1cea5c7 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;