feat: add ability to set default releases to old-releases
Metadata
Current evaluation
Merged. Adds a function to redirect Ubuntu package sources to old-releases.ubuntu.com for EOL releases. Approved by three reviewers, passed all CI checks, and implemented across 25 files.
Suggested action: —
No scores available.
Issue body
This adds a function at `craft_archives.defaults.use_old_releases`. When called, it checks the given root's `etc/apt/sources.list` file or `/etc/apt/sources.list.d/ubuntu.sources` for sources that are available on `old-releases.ubuntu.com`. For each source it finds there, it swaps the source to use `old-releases.ubuntu.com`.
While this is safe to run on any release, it is intended only to run on EOL Ubuntu releases.
CRAFT-4634
- [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 `make lint && make test`?
---
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Adds a function to redirect Ubuntu package sources to old-releases.ubuntu.com for EOL releases. Approved by three reviewers, passed all CI checks, and implemented across 25 files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged craft_archives.defaults.use_old_releases, a function redirecting EOL Ubuntu package sources to old-releases.ubuntu.com. Resolves CRAFT-4634. Verified via CI and passed all lint and test checks before merge. |
Update history
No update history recorded yet.
Related issues
No related issues found above the similarity threshold.