diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2023-09-26 16:29:13 +0300 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2023-09-29 06:33:57 +0000 |
commit | 7cf2c32cf0fb861ee02e12f2b0c578a3ddb69956 (patch) | |
tree | 5b9cf30f37883b8bba22db49eec97d13f8759676 /src/libs/installer/constants.h | |
parent | 170d9b46b4f3ff3d1bdf9a1c2550c2c34ff9b591 (diff) |
Fix allowing selecting an alias depending on unstable alias for install
For the sanity check calculations, all component aliases are manually
selected to detect possible errors in packaging preventing installing
of an alias. As the order of install for selected aliases is undefined,
in some cases the installer did not detect that an alias requires an
unstable alias.
Consider an example scenario:
* aliasA -> requires aliasB
* aliasB -> requires aliasC
* aliasC -> missing from installer
The unstable status is set the first time we query for the required
aliases of an alias, so the case for "ReferenceToUnstable" could go
amiss if the required aliases list for "aliasA" was populated before
for "aliasB".
Fix by populating the required aliases and components in the order
of the alias dependency graph.
Change-Id: Id2fc9e3e1b315f5be98ca8915a0938abad1a2eb5
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'src/libs/installer/constants.h')
0 files changed, 0 insertions, 0 deletions