diff options
author | Katja Marttila <katja.marttila@qt.io> | 2023-03-14 15:05:10 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2023-03-15 12:10:46 +0200 |
commit | c145dc914e76bb1532663289f5bca1f2214ea8d2 (patch) | |
tree | 87e43b6acf4e7c1309c281e09dfba9118d896374 /src/libs/installer/packagemanagercore.cpp | |
parent | f3647532f74db43077b0c119bae9e2f55f2f4471 (diff) |
Fix invalid cache state
Cache ended up in invalid state when there was categories used in the
installer which were not all defaultly selected. Cache
was only party updated when using CLI command search, and
the cache was populated only with Updates.xml and repository.txt. In the
next installer or MT launch, installer thought the cache was up to date
as the Updates.xml was found and did not know that the metadata was not
fetched. This lead to different error messages, like 'Cannot open script
file' or 'Cannot open the requested license file' etc.
Fixed so that metadata is fetched also when using CLI command search
Task-number: QTIFW-2998
Change-Id: I1cdc446469f38cc9e6ddc71f512105fc5d10e74c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/packagemanagercore.cpp')
-rw-r--r-- | src/libs/installer/packagemanagercore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/packagemanagercore.cpp b/src/libs/installer/packagemanagercore.cpp index 6a449c69a..c598e6c52 100644 --- a/src/libs/installer/packagemanagercore.cpp +++ b/src/libs/installer/packagemanagercore.cpp @@ -2497,7 +2497,7 @@ void PackageManagerCore::listAvailablePackages(const QString ®exp, const QHas << "Searching packages with regular expression:" << regexp; ComponentModel *model = defaultComponentModel(); - d->fetchMetaInformationFromRepositories(DownloadType::UpdatesXML); + d->fetchMetaInformationFromRepositories(); d->addUpdateResourcesFromRepositories(true); QRegularExpression re(regexp); |