feat: add ability to set default releases to old-releases
Metadata
Current evaluation
Merged PR #192 (commit 2171509) by maintainer lengau added craft_archives.defaults.use_old_releases(), which repoints apt sources.list/ubuntu.sources at old-releases.ubuntu.com for EOL suites. Shipped in craft-archives 2.2.0 (2025-08-13).
Resolution: closed resolved
Reason: The PR itself was merged into main as commit 2171509 after approval from 3 reviewers with all CI checks passing. The changelog for release 2.2.0 (2025-08-13) documents the new use_old_releases function, confirming it is part of the released API.
Evaluated by: mr-cal-bot
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #192 (commit 2171509) by maintainer lengau added craft_archives.defaults.use_old_releases(), which repoints apt sources.list/ubuntu.sources at old-releases.ubuntu.com for EOL suites. Shipped in craft-archives 2.2.0 (2025-08-13). | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #192 (commit 2171509) added defaults.use_old_releases, switching matching Ubuntu APT sources to old-releases.ubuntu.com for EOL releases. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #192 (commit 2171509), adding defaults.use_old_releases to switch matching Ubuntu APT sources to old-releases.ubuntu.com for EOL releases. | |
| 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. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/craft-application#850
(confidence 70%)
Author cited craft-application PR #850 run as functional proof of the new function
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #187 feat: add the ability to modify the system's default repositories | craft-archives | closed | Closed unmerged as superseded by #192, which added defaults.use_old_releases() to redirect Ubuntu sources to old-releases.ubuntu.com; shipped in 2.2.0. | |
| #153 feat: support foreign architectures | craft-archives | merged | Merged PR #153 as commit 64f1092, adding APT foreign-architecture support for deb822-based Ubuntu sources, including core24; released in craft-archives 2.1.0. | |
| #4277 requirements: bump craft-archives | snapcraft | merged | Merged PR #4277 (commit 7e6e3173, 2023-07-13) bumped craft-archives from 1.1.1 to 1.1.2, restoring support for local package repositories using url: file:///... (craft-archives PR #93). | |
| #5124 build(deps): bump craft-archives | snapcraft | merged | Merged PR #5124 as commit 47c3c2169, bumping craft-archives to fix LP#2083013 package-repository conflicts with Ubuntu Noble default sources. |