-
Notifications
You must be signed in to change notification settings - Fork 883
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow installing snaps via package_update_upgrade_install module (#4202)
This also includes a major refactoring in how the packagement management code is handled. Changes include: * Backwards compatible change to cc_package_update_upgrade_install schema to allow explicitly specifying the package manager to use * Create PackageManager base class that new package manager classes can inherit from * Allow distros to specify the package managers they support with generic install code to install from any of the supported package managers * Create new snap.py and apt.py classes for anything snap and APT related respectively * Move all APT functionality out of debian.py and into apt.py and update callers appropriately * Pull the packaging related calls out of child distro classes and into `distros/__init__.py` so distro code continues to work once package management code is factored out. * Add and update tests Note that this currently only affects debian and ubuntu, along with apt and snap. Migrating other package managers should be straightforward enough, but can be done in later PRs.
- Loading branch information
1 parent
55c13f5
commit 226ba25
Showing
20 changed files
with
841 additions
and
281 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
Oops, something went wrong.