summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-10-20 14:58:28 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-10-21 15:46:37 +0300
commitda6c97cc99162aa1a4916e7b77eefd7f631d11af (patch)
tree1a09f2c41f4a7f07bfd7e36f45be49f6a5fd72e0 /doc
parent422202d41537729d6fcdb853f686a51f20239f18 (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 'doc')
-rw-r--r--doc/installerfw.qdoc3
-rw-r--r--doc/scripting-api/packagemanagercore.qdoc6
2 files changed, 3 insertions, 6 deletions
diff --git a/doc/installerfw.qdoc b/doc/installerfw.qdoc
index e1ade5a13..3d251fbc7 100644
--- a/doc/installerfw.qdoc
+++ b/doc/installerfw.qdoc
@@ -252,6 +252,9 @@
search command. The keys can be any of the possible package information elements, like
\c DisplayName and \c Description.
\row
+ \li --cp, --cache-path <path>
+ \li Sets the path used for local metadata cache. The path must be writable by the current user.
+ \row
\li --am, --accept-messages
\li [CLI] Accepts all message queries without user input.
\row
diff --git a/doc/scripting-api/packagemanagercore.qdoc b/doc/scripting-api/packagemanagercore.qdoc
index cd2253890..b14fd957f 100644
--- a/doc/scripting-api/packagemanagercore.qdoc
+++ b/doc/scripting-api/packagemanagercore.qdoc
@@ -325,12 +325,6 @@
*/
/*!
- \qmlmethod void installer::clearLocalCache()
-
- Clears the contents of the cache used to store downloaded metadata.
-*/
-
-/*!
\qmlmethod void installer::componentsToInstallNeedsRecalculation()
Ensures that component dependencies are re-calculated.