diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2022-10-20 14:58:28 +0300 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2022-10-21 15:46:37 +0300 |
commit | da6c97cc99162aa1a4916e7b77eefd7f631d11af (patch) | |
tree | 1a09f2c41f4a7f07bfd7e36f45be49f6a5fd72e0 /src/libs/installer/constants.h | |
parent | 422202d41537729d6fcdb853f686a51f20239f18 (diff) |
CLI: Add new '--cache-path' option
The option can be used to select the path for metadata cache without
opening the installer's settings dialog.
Add public PackageManagerCore::resetLocalCache() function and remove
automatic initialization of the local cache in the private core class
constructor, so we can control the timeline better. Also make
PackageManagerCore::clearLocalCache() a regular member function as
it does not need to be a Qt slot.
Task-number: QTIFW-2810
Change-Id: Ia4a903026a10b90da16ba1b93fd3098a709f7ed7
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/constants.h')
-rw-r--r-- | src/libs/installer/constants.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/installer/constants.h b/src/libs/installer/constants.h index 77fc0237f..485982672 100644 --- a/src/libs/installer/constants.h +++ b/src/libs/installer/constants.h @@ -213,6 +213,8 @@ static const QLatin1String scNoDefaultInstallationShort("nd"); static const QLatin1String scNoDefaultInstallationLong("no-default-installations"); static const QLatin1String scFilterPackagesShort("fp"); static const QLatin1String scFilterPackagesLong("filter-packages"); +static const QLatin1String scLocalCachePathShort("cp"); +static const QLatin1String scLocalCachePathLong("cache-path"); // Developer options static const QLatin1String scScriptShort("s"); |