apt: add apt pinning support
Metadata
Current evaluation
Merged into main as commit 4729424 (March 2023), adding APT pinning via a new AptPreferencesManager that parses and writes apt preferences pin/priority entries (CRAFT-1645).
Resolution: closed resolved
Reason: PR #40 was approved and merged into main as commit 4729424, introducing craft_archives/repo/apt_preferences_manager.py with a Preference(pin, priority) model and an AptPreferencesManager with add/read/write of pin preferences.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the guidelines for contributing?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `tox`?
-----
CRAFT-1645
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged into main as commit 4729424 (March 2023), adding APT pinning via a new AptPreferencesManager that parses and writes apt preferences pin/priority entries (CRAFT-1645). | |
| stealth/space-bunny-alpha | — | closed resolved | Merged into main as commit 4729424, adding APT pinning support for CRAFT-1645. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged into main, implementing apt pinning support. Approved after review, passed all CI checks, and increased code coverage by 0.24%. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
craft-archives#45
(confidence 55%)
Follow-up 'pref: fix preferences file read/write errors' (1b2ce9c) touches the same apt_preferences_manager.py added here.
-
Related To:
craft-archives#80
(confidence 30%)
Later refactor of repo installation paths also modified apt_preferences_manager.py.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1654304 Allow pinning a source archive | snapcraft (launchpad) | open | APT pinning for the Ubuntu Touch overlay is now implemented via package-repositories priority, with craft-archives writing preferences and spread tests covering a PPA; this old request is resolved. |