Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
2.0.0
-
None
-
8c2941ae5892826520cccc946d13c17c8cc347f0
Description
Depending on a component with AutoDependOn will first install this component, then (in the next run) uninstall it.
What happened
- Component A AutoDependOn B, B is not installed
- Component C added a dependency to A in an Update. A got installed, but not B.
- The next time the PackageManager runs (e.g. to install/deinstall an unrelated component), IFW detects that the dependency from A to B is not satisfied (because B is not installed), automatically uninstalls C, A.
This is of course unfortunate ... What we could do is
- Forbid to depend on a component that has AutoDependOn
This is probably hard to enforce in the current codebase ... but we could do such a sanity checking once we have a unified dependency model.
- Enforce installation of B
That would probably not fit the exact use case where it happened (A was actually Virtual), but would be consistent to.
- Only remove A if there are no dependencies to it
Would require one local change.
Attachments
Issue Links
- relates to
-
QTIFW-388 AutoDependOn causes wrong packages to be uninstalled
- Closed
For Gerrit Dashboard: QTIFW-510 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
108201,5 | Issue a warning when a component depends on auto dependent one. | 2.0 | installer-framework/installer-framework | Status: MERGED | +2 | 0 |