Check if "-stagingDir" is passed from the command

Check if "-stagingDir" is passed from the command line before trying
to copy files to it.

Pick-to: 6.5
Change-Id: Id39882e4e955bd54328c8e747377b9d49f977378
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Alexey Edelev 2023-01-03 19:06:07 +01:00
parent ad7ad62d17
commit f071421558

View File

@ -649,7 +649,7 @@ public:
error = SyncFailed;
}
if (!m_commandLineArgs->scanAllMode()) {
if (!m_commandLineArgs->scanAllMode() && !m_commandLineArgs->stagingDir().empty()) {
// Copy the generated files to a spearate staging directory to make the installation
// process eaiser.
if (!copyGeneratedHeadersToStagingDirectory(m_commandLineArgs->stagingDir()))