repo: catch error updating the package cache
Metadata
Current evaluation
PR #2079 by kalikiana merged as commit d879b2e3a, adding CacheUpdateFailedError, catching apt.cache.FetchFailedException and clearing the index on hashsum mismatch. Fixed #2029, #2030 and LP #1747715.
Resolution: closed resolved
Reason: The PR was merged into snapcraft as commit d879b2e3a with 2 approving reviews; it introduced CacheUpdateFailedError in the errors module and apt cache-update failure handling in snapcraft/repo/deb.py, closing issues #2029 and #2030 and LP bug #1747715.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | PR #2079 by kalikiana merged as commit d879b2e3a, adding CacheUpdateFailedError, catching apt.cache.FetchFailedException and clearing the index on hashsum mismatch. Fixed #2029, #2030 and LP #1747715. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged as commit d879b2e3a: snapcraft now catches apt cache-update failures, raising CacheUpdateFailedError and clearing the index on hashsum mismatch. Fixes #2029, #2030, LP #1747715. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in snapcraft PR #2079 as commit d879b2e3a, handling apt cache-update errors and clearing the index after hashsum mismatches. Fixes #2029, #2030 and LP #1747715. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #2079 in d879b2e3, improving apt cache update errors and recovering from hash mismatches by clearing the package index. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Catches apt package cache update errors like hash mismatches and host resolution failures. Fixes #2029, #2030, and LP: #1747715 by handling exceptions, clearing the index on hash failures, and allowing Snapcraft to proceed. Includes test updates. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged fix that catches package cache update errors like hash mismatches and host resolution failures. It clears the index on hash mismatches to allow continuation, adds unit tests, and resolves #2029, #2030, and LP: #1747715. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
snapcraft#2029
(confidence 97%)
'Proper error for apt hash sum mismatches' — closed by this PR; maintainer kyrofa confirmed it fixes #2029.
-
Likely Fixed By:
snapcraft#2030
(confidence 90%)
'Properly invalidate the cache if sources change' — resolved via index clearing after hashsum mismatch.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2029 Proper error for apt hash sum mismatches | snapcraft | closed | Fixed by merged PR #2079 (commit d879b2e3a), which added CacheUpdateFailedError, caught apt's FetchFailedException and cleared the index on hashsum mismatch, closing #2029, #2030 and LP #1747715. |