Fixed: Don't forget to expand variables un client names

--HG--
branch : develop
feature/pipeline-tools
kervala 9 years ago
parent a981cfbfe5
commit 640489e3da

@ -704,7 +704,7 @@ OperationStep CConfigFile::getInstallNextStep() const
// downloaded files are kept in server directory // downloaded files are kept in server directory
QString dataFile = getInstallationDirectory() + "/" + server.dataDownloadFilename; QString dataFile = getInstallationDirectory() + "/" + server.dataDownloadFilename;
QString clientFile = getInstallationDirectory() + "/" + server.clientDownloadFilename; QString clientFile = getInstallationDirectory() + "/" + expandVariables(server.clientDownloadFilename);
// data are not copied // data are not copied
if (!areRyzomDataInstalledIn(serverDirectory)) if (!areRyzomDataInstalledIn(serverDirectory))
@ -760,7 +760,7 @@ OperationStep CConfigFile::getInstallNextStep() const
return ExtractBnpClient; return ExtractBnpClient;
} }
QString clientFile = getInstallationDirectory() + "/" + server.clientDownloadFilename; QString clientFile = getInstallationDirectory() + "/" + expandVariables(server.clientDownloadFilename);
// when file is not finished, it has .part extension // when file is not finished, it has .part extension
if (!QFile::exists(clientFile)) if (!QFile::exists(clientFile))

@ -278,7 +278,7 @@ void COperationDialog::processUpdateProfilesNextStep()
} }
else else
{ {
QString clientFile = config->getInstallationDirectory() + "/" + server.clientDownloadFilename; QString clientFile = config->getInstallationDirectory() + "/" + config->expandVariables(server.clientDownloadFilename);
} }
} }
} }
@ -452,7 +452,7 @@ void COperationDialog::extractDownloadedClient()
m_currentOperationProgressFormat = QApplication::tr("Extracting %1..."); m_currentOperationProgressFormat = QApplication::tr("Extracting %1...");
CFilesExtractor extractor(this); CFilesExtractor extractor(this);
extractor.setSourceFile(config->getInstallationDirectory() + "/" + server.clientDownloadFilename); extractor.setSourceFile(config->getInstallationDirectory() + "/" + config->expandVariables(server.clientDownloadFilename));
extractor.setDestinationDirectory(server.getDirectory()); extractor.setDestinationDirectory(server.getDirectory());
if (extractor.exec()) if (extractor.exec())

Loading…
Cancel
Save