MCPcopy Create free account
hub / github.com/QuasarApp/CQtDeployer / parseDeployMode

Method parseDeployMode

src/Deploy/src/configparser.cpp:675–761  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

673}
674
675bool ConfigParser::parseDeployMode(bool checkBin) {
676
677 if (QuasarAppUtils::Params::isEndable("deploySystem-with-libc")) {
678
679 qWarning() << "You are using a deprecated option \"deploySystem-with-libc\"."
680 " In this version this option is no different from \"deploySystem\"."
681 " Please use the deploySystem option.";
682
683 QuasarAppUtils::Params::setEnable("deploySystem", true );
684 }
685
686 if (!checkSnapPermisions()) {
687 return false;
688 }
689
690 setTargetDir();
691
692 initCustomPlatform();
693
694 auto bin = QuasarAppUtils::Params::getArg("bin").
695 split(DeployCore::getSeparator(0), splitbehavior);
696
697 if (bin.size() && !setTargets(bin)) {
698
699 qWarning() << "Failed to set targets";
700 }
701
702 auto xData = QuasarAppUtils::Params::getArg("extraData").
703 split(DeployCore::getSeparator(0), splitbehavior);
704
705
706 if (checkBin && !(_config.targets().count() || xData.count())) {
707
708 qCritical() << "Failed to initialize targets or extra data!";
709 qInfo() << "Use bin or extraData options and check input paths.";
710 return false;
711 }
712
713 _config.depchLimit = 0;
714
715 if (QuasarAppUtils::Params::isEndable("recursiveDepth")) {
716 bool ok;
717 _config.depchLimit = QuasarAppUtils::Params::getArg("recursiveDepth").toInt(&ok);
718 if (!ok) {
719 _config.depchLimit = 0;
720
721 qWarning() << "Failed to set the recursive depth. The argument of the recursiveDepth option is invalid!"
722 " Using the default value 0";
723 }
724 }
725
726 initIgnoreEnvList();
727 initEnvirement();
728 initIgnoreList();
729 if (!initDistroStruct()) {
730 return false;
731 }
732

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
targetsMethod · 0.80
toStringMethod · 0.45

Tested by

no test coverage detected