cmCPackIFWGenerator.cxx 19 KB

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