Update .uuid only when -r is given but not -f.
This commit is contained in:
parent
dd1a92911b
commit
dd21876e64
|
@ -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;
|
||||
|
|
|
@ -371,6 +371,11 @@ FcDirCacheClean (const FcChar8 *cache_dir, FcBool verbose);
|
|||
FcPublic void
|
||||
FcCacheCreateTagFile (const FcConfig *config);
|
||||
|
||||
FcPublic FcBool
|
||||
FcDirCacheCreateUUID (FcChar8 *dir,
|
||||
FcBool force,
|
||||
FcConfig *config);
|
||||
|
||||
/* fccfg.c */
|
||||
FcPublic FcChar8 *
|
||||
FcConfigHome (void);
|
||||
|
|
|
@ -409,7 +409,7 @@ FcDirCacheRead (const FcChar8 *dir, FcBool force, FcConfig *config)
|
|||
{
|
||||
FcCache *cache = NULL;
|
||||
|
||||
FcDirCacheCreateUUID ((FcChar8 *) dir, force, config);
|
||||
FcDirCacheCreateUUID ((FcChar8 *) dir, FcFalse, config);
|
||||
/* Try to use existing cache file */
|
||||
if (!force)
|
||||
cache = FcDirCacheLoad (dir, config, NULL);
|
||||
|
|
|
@ -596,11 +596,6 @@ struct _FcValuePromotionBuffer {
|
|||
|
||||
/* fccache.c */
|
||||
|
||||
FcPrivate FcBool
|
||||
FcDirCacheCreateUUID (FcChar8 *dir,
|
||||
FcBool force,
|
||||
FcConfig *config);
|
||||
|
||||
FcPrivate FcCache *
|
||||
FcDirCacheScan (const FcChar8 *dir, FcConfig *config);
|
||||
|
||||
|
|
Loading…
Reference in New Issue