mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
* o/snapstate: store unlinked component information in change As we will need this information in the component discard task. * o/snapstate: discard previous component on a component refresh Only one can be installed in the system at the same time. * tests/component: check removal of older component after refresh * o/snapstate: add function to retrieve component setup Add function to find ComponentSetup for a task that is part of the tasks created to do a component operation. * o/snapstate: store unlinked component in ComponentSetup * o/snapstate/backend: remove component related directories if empty * o/snapstate: use SnapSetup to store the previous kernel revision instead of having an object directly in the change. * o/snapstate: store unlinked component in setup task * o/snapstate: set previous kernel in setup task instead of making it part of SnapSetup. * o/snapstate: some additional tests