diff options
author | Akira TAGOH <akira@tagoh.org> | 2014-06-17 20:08:24 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2014-06-17 20:11:02 +0900 |
commit | d17f556153fbaf8fe57fdb4fc1f0efa4313f0ecf (patch) | |
tree | 34f182829fc5816f75ecbc787ead3a291bedb9d3 /fc-cache | |
parent | 8f62ccaa962b13781d7916d4d1c061993b991e69 (diff) |
Read the config files and fonts on the sysroot when --sysroot is given to fc-cache
Fix for e96d7760886a3781a46b3271c76af99e15cb0146
https://bugs.freedesktop.org/show_bug.cgi?id=59456
Diffstat (limited to 'fc-cache')
-rw-r--r-- | fc-cache/fc-cache.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c index 90ebad32..406ac6a8 100644 --- a/fc-cache/fc-cache.c +++ b/fc-cache/fc-cache.c @@ -128,7 +128,8 @@ scanDirs (FcStrList *list, FcConfig *config, FcBool force, FcBool really_force, struct stat statb; FcBool was_valid; int i; - + const FcChar8 *sysroot = FcConfigGetSysRoot (config); + /* * Now scan all of the directories into separate databases * and write out the results @@ -138,9 +139,10 @@ scanDirs (FcStrList *list, FcConfig *config, FcBool force, FcBool really_force, if (verbose) { if (!recursive) - printf ("Re-scanning %s: ", dir); - else - printf ("%s: ", dir); + printf ("Re-scanning "); + if (sysroot) + printf ("[%s]", sysroot); + printf ("%s: ", dir); fflush (stdout); } |