[PATCH] never try to validate cache files when using fc-cache -f

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

 



Hi, 

2006-02-02  Dirk Mueller  <dmueller@xxxxxxxx>

	* fc-cache/fc-cache.c (scanDirs): Don't check for
	cache validity if force is in effect. 

? stamp
Index: fc-cache.c
===================================================================
RCS file: /cvs/fontconfig/fontconfig/fc-cache/fc-cache.c,v
retrieving revision 1.17.2.15
diff -u -3 -d -p -r1.17.2.15 fc-cache.c
--- fc-cache.c	31 Jan 2006 04:07:45 -0000	1.17.2.15
+++ fc-cache.c	2 Feb 2006 16:35:49 -0000
@@ -215,7 +215,7 @@ scanDirs (FcStrList *list, FcConfig *con
 		printf ("caching, %d fonts, %d dirs\n", 
 			set->nfont, nsubdirs (subdirs));
 
-            if (!FcDirCacheValid (dir))
+            if (force || !FcDirCacheValid (dir))
                 if (!FcDirCacheUnlink (dir, config))
                     ret++;
 
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux