repo: apt-mark new build-packages as automatically installed
Metadata
Current evaluation
Merged. Marks new build packages as automatically installed to enable cleanup via apt-get autoremove. Approved, updated with integration tests, rebased to resolve conflicts, minor fixes applied, and merged.
Suggested action: —
No scores available.
Issue body
This allows to clean them up by just running `apt-get autoremove` once the snapcrafting is done, but in any case it's not breaking anything as it only applies to packages that were not previously installed.
A simpler solution for https://bugs.launchpad.net/snapcraft/+bug/1640143
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Marks new build packages as automatically installed to enable cleanup via apt-get autoremove. Approved, updated with integration tests, rebased to resolve conflicts, minor fixes applied, and merged. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes marking new build packages as automatically installed for apt-get autoremove cleanup. Integration tests were added, merge conflicts resolved, a repo.py syntax error fixed, and a requested environment variable override declined. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to master. Marks new build packages as auto-installed, enabling cleanup via apt-get autoremove after snapcrafting. Added integration tests, resolved conflicts, fixed minor issues, and closed Launchpad bug 1640143. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3411 repo: only install build packages marked for installation | snapcraft | merged | Merged a fix updating apt_cache.get_marked_packages() to exclude packages marked for deletion. The function now only returns packages intended for installation, letting apt handle removals. Approved and merged after passing CI. | |
| #1185 repo: add version support for build-packages | snapcraft | merged | Merged after adjusting apt_cache to exclude package versions, adding version support for build-packages. Rebased changes were re-applied and tests passed. Approved by two reviewers. | |
| #3221 repo: install requested build-package versions | snapcraft | merged | Merged fix for unimplemented build-package version installation. Explicitly specifies apt package versions and enables downgrades to resolve LP: #1887960. Approved and passed CI checks. | |
| #2023 repo: catch error due to broken build packages | snapcraft | merged | Resolved broken build package errors by introducing BuildPackagesNotInstalledError and falling back to apt-get for detailed conflict messages. Merged after reviewer approval and passing CI checks. | |
| #1193 repo: track per-part build-packages. | snapcraft | merged | Merged after addressing review comments and re-running CI. The change tracks per-part build-packages, received approval, and passed autopkgtests for xenial and zesty following test re-kicks. |