← Back to issue list

[experimental] package-management repository configuration

View original Github issue

Metadata

Project
snapcraft
Number
#2911
Type
pull request
State
merged
Author
cjp256
Labels
Created
Updated
Closed

Current evaluation

Merged experimental package-management repository configuration. Enables PPA and GPG key installation, smarter apt cache refresh, and test coverage. Required PR #2970 for the experimental flag and resolved CI failures prior to merge.

Suggested action:

No scores available.

Issue body

repo: add installation support for package-repositories - Enable installation support for PPAs. - Lookup GPG key fingerprint from launchpad using launchpadlib. - Install source using install_sources() so it is treated the same as other requested sources, but is a nice shortcut for the user. - Enable installation of GPG keys from local or keyserver sources. - Allow user to specify `key-id` which can either be the GPG key fingerprint/ID, or an identifier matching a key in the assets dir. - Smarter refresh apt cache logic, only refreshing when when either the apt configuration or GPG keys are modified after a batch install. That is, all user-configured repositories are installed, then apt will refresh the cache. This batch is currently separate from the process used by the ROS plugins to install their repositories. Future will make this more consistent. - Remove now-unused _get_local_sources_list(). - Prefix default names for apt sources with 'snapcraft-'. - Add unit test coverage and three spread tests to cover: 1. installation of PPA 2. installation of source using keyserver 3. installation of source using key assets via fingerprint 4. installation of source using key assets via name

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged experimental package-management repository configuration. Enables PPA and GPG key installation, smarter apt cache refresh, and test coverage. Required PR #2970 for the experimental flag and resolved CI failures prior to merge.
qwen3.6-35b-a3b-mtp-q6 Merged after resolving conflicts and test failures. Introduces experimental package-management repository configuration for PPAs and GPG keys, with optimized apt cache refresh. Requires PR #2970 to enable the feature flag.
qwen3.6-35b-a3b-mtp-q6 Merged experimental package-management repository configuration enabling PPA and GPG key installation with optimized apt cache refresh. Resolved validation errors linked to a known snapcraft bug, rebased to fix conflicts.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3520 package-repositories: remove experimental flag snapcraft merged Removed the experimental flag from the package-repositories module. Approved by three reviewers, passed CI checks, and merged into master with a net reduction of 34 lines across five files.
72%