| 94 | } |
| 95 | |
| 96 | static void IncludePackage(const String& packagePath, bool& success) |
| 97 | { |
| 98 | /* Note: Package includes will register their zones |
| 99 | * for config sync inside their generated config. */ |
| 100 | String packageName = Utility::BaseName(packagePath); |
| 101 | |
| 102 | if (Utility::PathExists(packagePath + "/include.conf")) { |
| 103 | std::unique_ptr<Expression> expr = ConfigCompiler::CompileFile(packagePath + "/include.conf", |
| 104 | String(), packageName); |
| 105 | |
| 106 | if (!ExecuteExpression(&*expr)) |
| 107 | success = false; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | bool DaemonUtility::ValidateConfigFiles(const std::vector<std::string>& configs, const String& objectsFile) |
| 112 | { |
no test coverage detected