summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/component.cpp
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-05-11 13:21:11 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2022-05-13 12:24:44 +0300
commitbaa236b7ae7bf1178ac21b56c245a5edc936b22e (patch)
treea75b4c4db204244f8f00748cce3847e9e7084adc /src/libs/installer/component.cpp
parent60704a293520d9fb53d0ca43cb63454ba221bcd3 (diff)
Save sorting priority of components to local package hub
Before this change, components that declared explicit SortingPriority value would be sorted incorrectly with the default sorting value if the repositories were not available after installation. Task-number: QTIFW-2631 Change-Id: I3d18d6c6a5444eb3d2d700f12ed61da72431b8a4 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/component.cpp')
-rw-r--r--src/libs/installer/component.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libs/installer/component.cpp b/src/libs/installer/component.cpp
index 100e95cee..d8485f02a 100644
--- a/src/libs/installer/component.cpp
+++ b/src/libs/installer/component.cpp
@@ -297,6 +297,7 @@ void Component::loadDataFromPackage(const KDUpdater::LocalPackage &package)
setValue(scUncompressedSize, QString::number(package.uncompressedSize));
setValue(scDependencies, package.dependencies.join(QLatin1String(",")));
setValue(scAutoDependOn, package.autoDependencies.join(QLatin1String(",")));
+ setValue(scSortingPriority, QString::number(package.sortingPriority));
setValue(scForcedInstallation, package.forcedInstallation ? scTrue : scFalse);
setValue(scVirtual, package.virtualComp ? scTrue : scFalse);