Merge ~cjwatson/launchpad:update-pkgcache-binary-race into launchpad:master
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Colin Watson | ||||
Approved revision: | 37ad5d5f93444577c369ef43bfff4a4b345c0d57 | ||||
Merge reported by: | Otto Co-Pilot | ||||
Merged at revision: | not available | ||||
Proposed branch: | ~cjwatson/launchpad:update-pkgcache-binary-race | ||||
Merge into: | launchpad:master | ||||
Diff against target: |
112 lines (+70/-4) 2 files modified
lib/lp/soyuz/model/distroseriespackagecache.py (+12/-0) lib/lp/soyuz/scripts/tests/test_update_pkgcache.py (+58/-4) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jürgen Gmach | Approve | ||
Review via email: mp+444768@code.launchpad.net |
Commit message
Fix update-pkgcache crash due to binary deletion
Description of the change
The `update-pkgcache` script started crashing on production about a week ago, and mysteriously started working again today without us changing anything. Based on code inspection, the only way I can see for this particular crash to happen is if a binary was deleted between `DistroSeriesPa
It seems safe to skip the affected binary in such cases, since `DistroSeriesPa