diff options
author | Katja Marttila <katja.marttila@qt.io> | 2024-04-02 15:12:56 +0300 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2024-04-05 10:01:49 +0300 |
commit | 5f3ca7366889c6e4cd699df47a6479ce200d6523 (patch) | |
tree | 5fd064edd6fe4690e949a84b921fdd00a7f7c8a2 /src/sdk/installerbase.cpp | |
parent | 048705b41d2b4126e318ae3d2955d8501227046b (diff) |
Save used CLI arguments for later usage
Qt Installer will send information to backend if unstable components are
found (e.g. dependency is missing), to better track for problems the CLI
arguments are needed as well. Options which are not defined in installer
are not saved, also option arguments which may contain confident
information are not saved either.
Task-number: QTIFW-3070
Change-Id: Iff5bfad725d1f56b7fb6c501138427ef4c58b5c3
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/sdk/installerbase.cpp')
-rw-r--r-- | src/sdk/installerbase.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sdk/installerbase.cpp b/src/sdk/installerbase.cpp index f9f535ee4..ac2c9d367 100644 --- a/src/sdk/installerbase.cpp +++ b/src/sdk/installerbase.cpp @@ -1,6 +1,6 @@ /************************************************************************** ** -** Copyright (C) 2023 The Qt Company Ltd. +** Copyright (C) 2024 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the Qt Installer Framework. @@ -97,6 +97,8 @@ int InstallerBase::run() if (status != QInstaller::PackageManagerCore::Success) return status; + m_core->saveGivenArguments(m_parser.optionNames()); + #ifdef ENABLE_SQUISH if (m_parser.isSet(CommandLineOptions::scSquishPortLong)) { const int maxSquishPortNumber = 65535; |