cmCPackIFWGenerator.cxx 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #include "cmCPackIFWGenerator.h"
  4. #include "cmCPackComponentGroup.h"
  5. #include "cmCPackGenerator.h"
  6. #include "cmCPackIFWCommon.h"
  7. #include "cmCPackIFWInstaller.h"
  8. #include "cmCPackIFWPackage.h"
  9. #include "cmCPackIFWRepository.h"
  10. #include "cmCPackLog.h" // IWYU pragma: keep
  11. #include "cmGeneratedFileStream.h"
  12. #include "cmSystemTools.h"
  13. #include <sstream>
  14. #include <utility>
  15. cmCPackIFWGenerator::cmCPackIFWGenerator()
  16. {
  17. this->Generator = this;
  18. }
  19. cmCPackIFWGenerator::~cmCPackIFWGenerator()
  20. {
  21. }
  22. int cmCPackIFWGenerator::PackageFiles()
  23. {
  24. cmCPackIFWLogger(OUTPUT, "- Configuration" << std::endl);
  25. // Installer configuragion
  26. this->Installer.GenerateInstallerFile();
  27. // Packages configuration
  28. this->Installer.GeneratePackageFiles();
  29. std::string ifwTLD = this->GetOption("CPACK_TOPLEVEL_DIRECTORY");
  30. std::string ifwTmpFile = ifwTLD;
  31. ifwTmpFile += "/IFWOutput.log";
  32. // Run repogen
  33. if (!this->Installer.RemoteRepositories.empty()) {
  34. std::string ifwCmd = this->RepoGen;
  35. if (this->IsVersionLess("2.0.0")) {
  36. ifwCmd += " -c " + this->toplevel + "/config/config.xml";
  37. }
  38. ifwCmd += " -p " + this->toplevel + "/packages";
  39. if (!this->PkgsDirsVector.empty()) {
  40. for (std::string const& it : this->PkgsDirsVector) {
  41. ifwCmd += " -p " + it;
  42. }
  43. }
  44. if (!this->RepoDirsVector.empty()) {
  45. if (!this->IsVersionLess("3.1")) {
  46. for (std::string const& rd : this->RepoDirsVector) {
  47. ifwCmd += " --repository " + rd;
  48. }
  49. } else {
  50. cmCPackIFWLogger(WARNING, "The \"CPACK_IFW_REPOSITORIES_DIRECTORIES\" "
  51. << "variable is set, but content will be skiped, "
  52. << "because this feature available only since "
  53. << "QtIFW 3.1. Please update your QtIFW instance."
  54. << std::endl);
  55. }
  56. }
  57. if (!this->OnlineOnly && !this->DownloadedPackages.empty()) {
  58. ifwCmd += " -i ";
  59. std::set<cmCPackIFWPackage*>::iterator it =
  60. this->DownloadedPackages.begin();
  61. ifwCmd += (*it)->Name;
  62. ++it;
  63. while (it != this->DownloadedPackages.end()) {
  64. ifwCmd += "," + (*it)->Name;
  65. ++it;
  66. }
  67. }
  68. ifwCmd += " " + this->toplevel + "/repository";
  69. cmCPackIFWLogger(VERBOSE, "Execute: " << ifwCmd << std::endl);
  70. std::string output;
  71. int retVal = 1;
  72. cmCPackIFWLogger(OUTPUT, "- Generate repository" << std::endl);
  73. bool res = cmSystemTools::RunSingleCommand(ifwCmd.c_str(), &output,
  74. &output, &retVal, nullptr,
  75. this->GeneratorVerbose, 0);
  76. if (!res || retVal) {
  77. cmGeneratedFileStream ofs(ifwTmpFile.c_str());
  78. ofs << "# Run command: " << ifwCmd << std::endl
  79. << "# Output:" << std::endl
  80. << output << std::endl;
  81. cmCPackIFWLogger(ERROR, "Problem running IFW command: "
  82. << ifwCmd << std::endl
  83. << "Please check " << ifwTmpFile << " for errors"
  84. << std::endl);
  85. return 0;
  86. }
  87. if (!this->Repository.RepositoryUpdate.empty() &&
  88. !this->Repository.PatchUpdatesXml()) {
  89. cmCPackIFWLogger(WARNING, "Problem patch IFW \"Updates\" "
  90. << "file: "
  91. << this->toplevel + "/repository/Updates.xml"
  92. << std::endl);
  93. }
  94. cmCPackIFWLogger(OUTPUT, "- repository: " << this->toplevel
  95. << "/repository generated"
  96. << std::endl);
  97. }
  98. // Run binary creator
  99. {
  100. std::string ifwCmd = this->BinCreator;
  101. ifwCmd += " -c " + this->toplevel + "/config/config.xml";
  102. if (!this->Installer.Resources.empty()) {
  103. ifwCmd += " -r ";
  104. std::vector<std::string>::iterator it =
  105. this->Installer.Resources.begin();
  106. std::string path = this->toplevel + "/resources/";
  107. ifwCmd += path + *it;
  108. ++it;
  109. while (it != this->Installer.Resources.end()) {
  110. ifwCmd += "," + path + *it;
  111. ++it;
  112. }
  113. }
  114. ifwCmd += " -p " + this->toplevel + "/packages";
  115. if (!this->PkgsDirsVector.empty()) {
  116. for (std::string const& it : this->PkgsDirsVector) {
  117. ifwCmd += " -p " + it;
  118. }
  119. }
  120. if (!this->RepoDirsVector.empty()) {
  121. if (!this->IsVersionLess("3.1")) {
  122. for (std::string const& rd : this->RepoDirsVector) {
  123. ifwCmd += " --repository " + rd;
  124. }
  125. } else {
  126. cmCPackIFWLogger(WARNING, "The \"CPACK_IFW_REPOSITORIES_DIRECTORIES\" "
  127. << "variable is set, but content will be skipped, "
  128. << "because this feature available only since "
  129. << "QtIFW 3.1. Please update your QtIFW instance."
  130. << std::endl);
  131. }
  132. }
  133. if (this->OnlineOnly) {
  134. ifwCmd += " --online-only";
  135. } else if (!this->DownloadedPackages.empty() &&
  136. !this->Installer.RemoteRepositories.empty()) {
  137. ifwCmd += " -e ";
  138. std::set<cmCPackIFWPackage*>::iterator it =
  139. this->DownloadedPackages.begin();
  140. ifwCmd += (*it)->Name;
  141. ++it;
  142. while (it != this->DownloadedPackages.end()) {
  143. ifwCmd += "," + (*it)->Name;
  144. ++it;
  145. }
  146. } else if (!this->DependentPackages.empty()) {
  147. ifwCmd += " -i ";
  148. // Binary
  149. std::set<cmCPackIFWPackage*>::iterator bit =
  150. this->BinaryPackages.begin();
  151. while (bit != this->BinaryPackages.end()) {
  152. ifwCmd += (*bit)->Name + ",";
  153. ++bit;
  154. }
  155. // Depend
  156. DependenceMap::iterator it = this->DependentPackages.begin();
  157. ifwCmd += it->second.Name;
  158. ++it;
  159. while (it != this->DependentPackages.end()) {
  160. ifwCmd += "," + it->second.Name;
  161. ++it;
  162. }
  163. }
  164. // TODO: set correct name for multipackages
  165. if (!this->packageFileNames.empty()) {
  166. ifwCmd += " " + this->packageFileNames[0];
  167. } else {
  168. ifwCmd += " installer";
  169. ifwCmd += this->OutputExtension;
  170. }
  171. cmCPackIFWLogger(VERBOSE, "Execute: " << ifwCmd << std::endl);
  172. std::string output;
  173. int retVal = 1;
  174. cmCPackIFWLogger(OUTPUT, "- Generate package" << std::endl);
  175. bool res = cmSystemTools::RunSingleCommand(ifwCmd.c_str(), &output,
  176. &output, &retVal, nullptr,
  177. this->GeneratorVerbose, 0);
  178. if (!res || retVal) {
  179. cmGeneratedFileStream ofs(ifwTmpFile.c_str());
  180. ofs << "# Run command: " << ifwCmd << std::endl
  181. << "# Output:" << std::endl
  182. << output << std::endl;
  183. cmCPackIFWLogger(ERROR, "Problem running IFW command: "
  184. << ifwCmd << std::endl
  185. << "Please check " << ifwTmpFile << " for errors"
  186. << std::endl);
  187. return 0;
  188. }
  189. }
  190. return 1;
  191. }
  192. const char* cmCPackIFWGenerator::GetPackagingInstallPrefix()
  193. {
  194. const char* defPrefix = this->cmCPackGenerator::GetPackagingInstallPrefix();
  195. std::string tmpPref = defPrefix ? defPrefix : "";
  196. if (this->Components.empty()) {
  197. tmpPref += "packages/" + this->GetRootPackageName() + "/data";
  198. }
  199. this->SetOption("CPACK_IFW_PACKAGING_INSTALL_PREFIX", tmpPref.c_str());
  200. return this->GetOption("CPACK_IFW_PACKAGING_INSTALL_PREFIX");
  201. }
  202. const char* cmCPackIFWGenerator::GetOutputExtension()
  203. {
  204. return this->OutputExtension.c_str();
  205. }
  206. int cmCPackIFWGenerator::InitializeInternal()
  207. {
  208. // Search Qt Installer Framework tools
  209. const std::string BinCreatorOpt = "CPACK_IFW_BINARYCREATOR_EXECUTABLE";
  210. const std::string RepoGenOpt = "CPACK_IFW_REPOGEN_EXECUTABLE";
  211. const std::string FrameworkVersionOpt = "CPACK_IFW_FRAMEWORK_VERSION";
  212. if (!this->IsSet(BinCreatorOpt) || !this->IsSet(RepoGenOpt) ||
  213. !this->IsSet(FrameworkVersionOpt)) {
  214. this->ReadListFile("CPackIFW.cmake");
  215. }
  216. // Look 'binarycreator' executable (needs)
  217. const char* BinCreatorStr = this->GetOption(BinCreatorOpt);
  218. if (!BinCreatorStr || cmSystemTools::IsNOTFOUND(BinCreatorStr)) {
  219. this->BinCreator.clear();
  220. } else {
  221. this->BinCreator = BinCreatorStr;
  222. }
  223. if (this->BinCreator.empty()) {
  224. cmCPackIFWLogger(ERROR, "Cannot find QtIFW compiler \"binarycreator\": "
  225. "likely it is not installed, or not in your PATH"
  226. << std::endl);
  227. return 0;
  228. }
  229. // Look 'repogen' executable (optional)
  230. const char* RepoGenStr = this->GetOption(RepoGenOpt);
  231. if (!RepoGenStr || cmSystemTools::IsNOTFOUND(RepoGenStr)) {
  232. this->RepoGen.clear();
  233. } else {
  234. this->RepoGen = RepoGenStr;
  235. }
  236. // Framework version
  237. if (const char* FrameworkVersionSrt = this->GetOption(FrameworkVersionOpt)) {
  238. this->FrameworkVersion = FrameworkVersionSrt;
  239. } else {
  240. this->FrameworkVersion = "1.9.9";
  241. }
  242. // Variables that Change Behavior
  243. // Resolve duplicate names
  244. this->ResolveDuplicateNames =
  245. this->IsOn("CPACK_IFW_RESOLVE_DUPLICATE_NAMES");
  246. // Additional packages dirs
  247. this->PkgsDirsVector.clear();
  248. if (const char* dirs = this->GetOption("CPACK_IFW_PACKAGES_DIRECTORIES")) {
  249. cmSystemTools::ExpandListArgument(dirs, this->PkgsDirsVector);
  250. }
  251. // Additional repositories dirs
  252. this->RepoDirsVector.clear();
  253. if (const char* dirs =
  254. this->GetOption("CPACK_IFW_REPOSITORIES_DIRECTORIES")) {
  255. cmSystemTools::ExpandListArgument(dirs, this->RepoDirsVector);
  256. }
  257. // Installer
  258. this->Installer.Generator = this;
  259. this->Installer.ConfigureFromOptions();
  260. // Repository
  261. this->Repository.Generator = this;
  262. this->Repository.Name = "Unspecified";
  263. if (const char* site = this->GetOption("CPACK_DOWNLOAD_SITE")) {
  264. this->Repository.Url = site;
  265. this->Installer.RemoteRepositories.push_back(&this->Repository);
  266. }
  267. // Repositories
  268. if (const char* RepoAllStr = this->GetOption("CPACK_IFW_REPOSITORIES_ALL")) {
  269. std::vector<std::string> RepoAllVector;
  270. cmSystemTools::ExpandListArgument(RepoAllStr, RepoAllVector);
  271. for (std::string const& r : RepoAllVector) {
  272. this->GetRepository(r);
  273. }
  274. }
  275. if (const char* ifwDownloadAll = this->GetOption("CPACK_IFW_DOWNLOAD_ALL")) {
  276. this->OnlineOnly = cmSystemTools::IsOn(ifwDownloadAll);
  277. } else if (const char* cpackDownloadAll =
  278. this->GetOption("CPACK_DOWNLOAD_ALL")) {
  279. this->OnlineOnly = cmSystemTools::IsOn(cpackDownloadAll);
  280. } else {
  281. this->OnlineOnly = false;
  282. }
  283. if (!this->Installer.RemoteRepositories.empty() && this->RepoGen.empty()) {
  284. cmCPackIFWLogger(ERROR,
  285. "Cannot find QtIFW repository generator \"repogen\": "
  286. "likely it is not installed, or not in your PATH"
  287. << std::endl);
  288. return 0;
  289. }
  290. // Executable suffix
  291. std::string exeSuffix(this->GetOption("CMAKE_EXECUTABLE_SUFFIX"));
  292. std::string sysName(this->GetOption("CMAKE_SYSTEM_NAME"));
  293. if (sysName == "Linux") {
  294. this->ExecutableSuffix = ".run";
  295. } else if (sysName == "Windows") {
  296. this->ExecutableSuffix = ".exe";
  297. } else if (sysName == "Darwin") {
  298. this->ExecutableSuffix = ".app";
  299. } else {
  300. this->ExecutableSuffix = exeSuffix;
  301. }
  302. // Output extension
  303. if (const char* optOutExt =
  304. this->GetOption("CPACK_IFW_PACKAGE_FILE_EXTENSION")) {
  305. this->OutputExtension = optOutExt;
  306. } else if (sysName == "Darwin") {
  307. this->OutputExtension = ".dmg";
  308. } else {
  309. this->OutputExtension = this->ExecutableSuffix;
  310. }
  311. if (this->OutputExtension.empty()) {
  312. this->OutputExtension = this->cmCPackGenerator::GetOutputExtension();
  313. }
  314. return this->Superclass::InitializeInternal();
  315. }
  316. std::string cmCPackIFWGenerator::GetComponentInstallDirNameSuffix(
  317. const std::string& componentName)
  318. {
  319. const std::string prefix = "packages/";
  320. const std::string suffix = "/data";
  321. if (this->componentPackageMethod == this->ONE_PACKAGE) {
  322. return std::string(prefix + this->GetRootPackageName() + suffix);
  323. }
  324. return prefix +
  325. this->GetComponentPackageName(&this->Components[componentName]) + suffix;
  326. }
  327. cmCPackComponent* cmCPackIFWGenerator::GetComponent(
  328. const std::string& projectName, const std::string& componentName)
  329. {
  330. ComponentsMap::iterator cit = this->Components.find(componentName);
  331. if (cit != this->Components.end()) {
  332. return &(cit->second);
  333. }
  334. cmCPackComponent* component =
  335. this->cmCPackGenerator::GetComponent(projectName, componentName);
  336. if (!component) {
  337. return component;
  338. }
  339. std::string name = this->GetComponentPackageName(component);
  340. PackagesMap::iterator pit = this->Packages.find(name);
  341. if (pit != this->Packages.end()) {
  342. return component;
  343. }
  344. cmCPackIFWPackage* package = &this->Packages[name];
  345. package->Name = name;
  346. package->Generator = this;
  347. if (package->ConfigureFromComponent(component)) {
  348. package->Installer = &this->Installer;
  349. this->Installer.Packages.insert(
  350. std::pair<std::string, cmCPackIFWPackage*>(name, package));
  351. this->ComponentPackages.insert(
  352. std::pair<cmCPackComponent*, cmCPackIFWPackage*>(component, package));
  353. if (component->IsDownloaded) {
  354. this->DownloadedPackages.insert(package);
  355. } else {
  356. this->BinaryPackages.insert(package);
  357. }
  358. } else {
  359. this->Packages.erase(name);
  360. cmCPackIFWLogger(ERROR, "Cannot configure package \""
  361. << name << "\" for component \"" << component->Name
  362. << "\"" << std::endl);
  363. }
  364. return component;
  365. }
  366. cmCPackComponentGroup* cmCPackIFWGenerator::GetComponentGroup(
  367. const std::string& projectName, const std::string& groupName)
  368. {
  369. cmCPackComponentGroup* group =
  370. this->cmCPackGenerator::GetComponentGroup(projectName, groupName);
  371. if (!group) {
  372. return group;
  373. }
  374. std::string name = this->GetGroupPackageName(group);
  375. PackagesMap::iterator pit = this->Packages.find(name);
  376. if (pit != this->Packages.end()) {
  377. return group;
  378. }
  379. cmCPackIFWPackage* package = &this->Packages[name];
  380. package->Name = name;
  381. package->Generator = this;
  382. if (package->ConfigureFromGroup(group)) {
  383. package->Installer = &this->Installer;
  384. this->Installer.Packages.insert(
  385. std::pair<std::string, cmCPackIFWPackage*>(name, package));
  386. this->GroupPackages.insert(
  387. std::pair<cmCPackComponentGroup*, cmCPackIFWPackage*>(group, package));
  388. this->BinaryPackages.insert(package);
  389. } else {
  390. this->Packages.erase(name);
  391. cmCPackIFWLogger(ERROR, "Cannot configure package \""
  392. << name << "\" for component group \"" << group->Name
  393. << "\"" << std::endl);
  394. }
  395. return group;
  396. }
  397. enum cmCPackGenerator::CPackSetDestdirSupport
  398. cmCPackIFWGenerator::SupportsSetDestdir() const
  399. {
  400. return cmCPackGenerator::SETDESTDIR_SHOULD_NOT_BE_USED;
  401. }
  402. bool cmCPackIFWGenerator::SupportsAbsoluteDestination() const
  403. {
  404. return false;
  405. }
  406. bool cmCPackIFWGenerator::SupportsComponentInstallation() const
  407. {
  408. return true;
  409. }
  410. bool cmCPackIFWGenerator::IsOnePackage() const
  411. {
  412. return this->componentPackageMethod == cmCPackGenerator::ONE_PACKAGE;
  413. }
  414. std::string cmCPackIFWGenerator::GetRootPackageName()
  415. {
  416. // Default value
  417. std::string name = "root";
  418. if (const char* optIFW_PACKAGE_GROUP =
  419. this->GetOption("CPACK_IFW_PACKAGE_GROUP")) {
  420. // Configure from root group
  421. cmCPackIFWPackage package;
  422. package.Generator = this;
  423. package.ConfigureFromGroup(optIFW_PACKAGE_GROUP);
  424. name = package.Name;
  425. } else if (const char* optIFW_PACKAGE_NAME =
  426. this->GetOption("CPACK_IFW_PACKAGE_NAME")) {
  427. // Configure from root package name
  428. name = optIFW_PACKAGE_NAME;
  429. } else if (const char* optPACKAGE_NAME =
  430. this->GetOption("CPACK_PACKAGE_NAME")) {
  431. // Configure from package name
  432. name = optPACKAGE_NAME;
  433. }
  434. return name;
  435. }
  436. std::string cmCPackIFWGenerator::GetGroupPackageName(
  437. cmCPackComponentGroup* group) const
  438. {
  439. std::string name;
  440. if (!group) {
  441. return name;
  442. }
  443. if (cmCPackIFWPackage* package = this->GetGroupPackage(group)) {
  444. return package->Name;
  445. }
  446. const char* option =
  447. this->GetOption("CPACK_IFW_COMPONENT_GROUP_" +
  448. cmsys::SystemTools::UpperCase(group->Name) + "_NAME");
  449. name = option ? option : group->Name;
  450. if (group->ParentGroup) {
  451. cmCPackIFWPackage* package = this->GetGroupPackage(group->ParentGroup);
  452. bool dot = !this->ResolveDuplicateNames;
  453. if (dot && name.substr(0, package->Name.size()) == package->Name) {
  454. dot = false;
  455. }
  456. if (dot) {
  457. name = package->Name + "." + name;
  458. }
  459. }
  460. return name;
  461. }
  462. std::string cmCPackIFWGenerator::GetComponentPackageName(
  463. cmCPackComponent* component) const
  464. {
  465. std::string name;
  466. if (!component) {
  467. return name;
  468. }
  469. if (cmCPackIFWPackage* package = this->GetComponentPackage(component)) {
  470. return package->Name;
  471. }
  472. std::string prefix = "CPACK_IFW_COMPONENT_" +
  473. cmsys::SystemTools::UpperCase(component->Name) + "_";
  474. const char* option = this->GetOption(prefix + "NAME");
  475. name = option ? option : component->Name;
  476. if (component->Group) {
  477. cmCPackIFWPackage* package = this->GetGroupPackage(component->Group);
  478. if ((this->componentPackageMethod ==
  479. cmCPackGenerator::ONE_PACKAGE_PER_GROUP) ||
  480. this->IsOn(prefix + "COMMON")) {
  481. return package->Name;
  482. }
  483. bool dot = !this->ResolveDuplicateNames;
  484. if (dot && name.substr(0, package->Name.size()) == package->Name) {
  485. dot = false;
  486. }
  487. if (dot) {
  488. name = package->Name + "." + name;
  489. }
  490. }
  491. return name;
  492. }
  493. cmCPackIFWPackage* cmCPackIFWGenerator::GetGroupPackage(
  494. cmCPackComponentGroup* group) const
  495. {
  496. std::map<cmCPackComponentGroup*, cmCPackIFWPackage*>::const_iterator pit =
  497. this->GroupPackages.find(group);
  498. return pit != this->GroupPackages.end() ? pit->second : nullptr;
  499. }
  500. cmCPackIFWPackage* cmCPackIFWGenerator::GetComponentPackage(
  501. cmCPackComponent* component) const
  502. {
  503. std::map<cmCPackComponent*, cmCPackIFWPackage*>::const_iterator pit =
  504. this->ComponentPackages.find(component);
  505. return pit != this->ComponentPackages.end() ? pit->second : nullptr;
  506. }
  507. cmCPackIFWRepository* cmCPackIFWGenerator::GetRepository(
  508. const std::string& repositoryName)
  509. {
  510. RepositoriesMap::iterator rit = this->Repositories.find(repositoryName);
  511. if (rit != this->Repositories.end()) {
  512. return &(rit->second);
  513. }
  514. cmCPackIFWRepository* repository = &this->Repositories[repositoryName];
  515. repository->Name = repositoryName;
  516. repository->Generator = this;
  517. if (repository->ConfigureFromOptions()) {
  518. if (repository->Update == cmCPackIFWRepository::None) {
  519. this->Installer.RemoteRepositories.push_back(repository);
  520. } else {
  521. this->Repository.RepositoryUpdate.push_back(repository);
  522. }
  523. } else {
  524. this->Repositories.erase(repositoryName);
  525. repository = nullptr;
  526. cmCPackIFWLogger(WARNING, "Invalid repository \""
  527. << repositoryName << "\""
  528. << " configuration. Repository will be skipped."
  529. << std::endl);
  530. }
  531. return repository;
  532. }