feat: add the ability to modify the system's default repositories
Metadata
Current evaluation
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.
Resolution: closed superseded
Reason: The author explicitly marked #187 as superseded by #192. PR #192 merged as commit 2171509 and released the narrower old-releases support in craft-archives 2.2.0.
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 `make lint && make test`?
---
This adds the ability to get and set the default repositories for a system, allowing the modification of those repositories.
As a side-effect of this, PackageRepository objects are now able to parse themselves from a `sources.list` file or `*.sources` deb822 file and are able to write their values back to those files.
CRAFT-4634
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | 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. | |
| stealth/space-bunny-alpha | — | closed superseded | Closed unmerged as superseded by #192, which added defaults.use_old_releases to redirect Ubuntu sources to old-releases.ubuntu.com (commit 2171509). | |
| qwen/qwen3.6-35b-a3b | — | — | Superseded by #192. Introduces functionality to get and set default system repositories, allowing PackageRepository objects to parse and write to sources.list and deb822 files. |
Update history
No update history recorded yet.
Related work
-
Superseded By:
canonical/craft-archives#192
(confidence 100%)
Merged replacement PR adding defaults.use_old_releases() in commit 2171509.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #192 feat: add ability to set default releases to old-releases | craft-archives | merged | 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). | |
| #176 Allow modifying existing default repositories | craft-archives | open | Request to rewrite Ubuntu default repositories is implemented: PR #192 added defaults.use_old_releases to redirect EOL release sources to old-releases.ubuntu.com. |