forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o/snapstate, daemon: allow installing components for already installe…
…d snap (canonical#14260) * o/snapstate: explicitly handle discard tasks in componentInstallTaskSet * o/snapstate: allow installing components for a snap that is already installed * daemon: move code around to create a place for installing components for already installed snaps * o/snapstate: add TODO:COMPS about using transaction * daemon: allow snapd API to install components from the store for already installed snaps * tests: spread test installing a component for a snap that is already installed * o/snapstate, store: do not return ErrNoUpdateAvailable for snaps that have had a resource revision change * daemon: lift variable initialization out of loop * daemon: rename some tests for clarity * o/snapstate: move function closer to similar functions * store: add comment explaining how we decide if a snap has no updates or not * o/snapstate: add TODO:COMPS about testing branch when losing comps during refresh * store: add doc comment on ResourceInstall field * o/snapstate, snap: add and use snap.AlreadyInstalledComponentError * o/snapstate: add tests for conflict behavior for installing components * o/snapstate: add params for splicing setup-profiles and setup-kernel-modules-components tasks into chain built by doInstallComponent * o/snapstate: manually add setup-profiles and setup-kernel-modules-components tasks into chain to avoid adding inaccurate data to the tasks * o/snapstate: add some clarifying comments * o/snapstate: fix typo in comment
- Loading branch information
1 parent
db09bc8
commit c999099
Showing
16 changed files
with
1,053 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.