[PATCHv2 3/3] Assume ignore_missing on deprecated config includes

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

 



When deprecating a config include -> force ignore_missing to
be set to true.

This gives the user the opportunity to fix the inclusion of
deprecated config directories/files by removing them without getting
error messages about missing directories.
---
 src/fcxml.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/fcxml.c b/src/fcxml.c
index a146068..d7d917f 100644
--- a/src/fcxml.c
+++ b/src/fcxml.c
@@ -2056,7 +2056,10 @@ FcParseInclude (FcConfigParse *parse)
 	ignore_missing = FcTrue;
     attr = FcConfigGetAttribute (parse, "deprecated");
     if (attr && FcConfigLexBool (parse, (FcChar8 *) attr) == FcTrue)
+    {
         deprecated = FcTrue;
+        ignore_missing = FcTrue;
+    }
     attr = FcConfigGetAttribute (parse, "prefix");
     if (attr && FcStrCmp (attr, (const FcChar8 *)"xdg") == 0)
 	prefix = FcConfigXdgConfigHome ();
-- 
1.7.5.2

_______________________________________________
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