Merge lp:~wgrant/launchpad/nu-overrides-adapters into lp:launchpad
Status: | Merged |
---|---|
Merged at revision: | 17138 |
Proposed branch: | lp:~wgrant/launchpad/nu-overrides-adapters |
Merge into: | lp:launchpad |
Diff against target: |
358 lines (+95/-175) 3 files modified
lib/lp/archiveuploader/nascentupload.py (+89/-165) lib/lp/soyuz/doc/soyuz-set-of-uploads.txt (+2/-1) lib/lp/soyuz/scripts/packagecopier.py (+4/-9) |
To merge this branch: | bzr merge lp:~wgrant/launchpad/nu-overrides-adapters |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Celso Providelo (community) | Approve | ||
Review via email: mp+228619@code.launchpad.net |
Commit message
Replace archiveuploader's custom override logic with calls into the common lp.soyuz.
Description of the change
This branch replaces NacentUpload's override logic with calls into lp.soyuz.
There are some subtle functional changes here that bring archiveuploader into line with packagecopier. I've discussed them with Adam and Colin and they don't seem controversial.
- The archive's latest publication in the series is used as the override ancestor, no longer filtering by pocket. Versions are still only checked against the upload pocket and RELEASE.
- Resurrecting a deleted package with an upload will still hit NEW, but it will now default to the deleted publication's overrides.
- Copy archive binaries are now overridden using exactly the normal primary archive rules, so they'll no longer land in contrib or non-free and get rejected.
Amazing how this new overriding mechanism is simplifying the code around it. Very nice design!
This change improves not only code readability but also correctness, great job.
As discussed on IRC, having proper overrides in NU will have good impacts in publications, possibly more cleanups (eg soyuz.model. publishing. get_component) and stop {S,B}PR component/section mutation (noted as XXX) and these effects will be explored in subsequent MPs.