summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/packagemanagercore.h
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2022-03-07 17:40:01 +0200
committerKatja Marttila <katja.marttila@qt.io>2022-03-18 13:01:00 +0200
commit0486535dc1e2cc8a902ee8625a822384e6c26e1e (patch)
tree0840714615d86f6709738b4e1655d3ee299e5bbb /src/libs/installer/packagemanagercore.h
parent1e676ad0eb6e1cf163b77923c7da9815b09e3def (diff)
Do not uninstall needed virtual dependencies
Virtual dependencies are uninstalled if all dependencies to the component is removed. Virtual dependencies were calculated using recent components in repository, which is wrong as the dependencies may have changed in the repository, causing the dependencies to be uninstalled although those are still needed. Fixed so that the uninstallable virtual components are calculated from repository components if the component is going to be updated, otherwise the dependeny is calculated from the local installed packages. Task-number: QTIFW-2573 Change-Id: If9cc59fa7f453d502ec1883f27273ef604128a6e Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/packagemanagercore.h')
-rw-r--r--src/libs/installer/packagemanagercore.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/installer/packagemanagercore.h b/src/libs/installer/packagemanagercore.h
index cf1916c48..012c57d58 100644
--- a/src/libs/installer/packagemanagercore.h
+++ b/src/libs/installer/packagemanagercore.h
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** Copyright (C) 2021 The Qt Company Ltd.
+** Copyright (C) 2022 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Installer Framework.
@@ -242,6 +242,7 @@ public:
QString installReason(Component *component) const;
QList<Component*> dependees(const Component *component) const;
+ QList<Component*> installDependants(const Component *component) const;
ComponentModel *defaultComponentModel() const;
ComponentModel *updaterComponentModel() const;