Check if "-stagingDir" is passed from the command

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

Change-Id: Id39882e4e955bd54328c8e747377b9d49f977378
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit f071421558c751dc03c338f3271546c459ed9209)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Alexey Edelev 2023-01-03 19:06:07 +01:00 committed by Qt Cherry-pick Bot
parent 1ee479c66d
commit 72fcfba1d5

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()))