Merge lp:~wallyworld/launchpad/package-defaults-192076 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Ian Booth on 2012-11-01 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 16220 |
| Proposed branch: | lp:~wallyworld/launchpad/package-defaults-192076 |
| Merge into: | lp:launchpad |
| Diff against target: |
195 lines (+90/-18) 3 files modified
lib/lp/archiveuploader/nascentupload.py (+20/-4) lib/lp/archiveuploader/nascentuploadfile.py (+23/-12) lib/lp/archiveuploader/tests/test_uploadprocessor.py (+47/-2) |
| To merge this branch: | bzr merge lp:~wallyworld/launchpad/package-defaults-192076 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Steve Kowalik (community) | code | 2012-10-26 | Approve on 2012-11-01 |
|
Review via email:
|
|||
Commit Message
Correctly set the overridden component for binary publications.
Description of the Change
== Implementation ==
I added a small extra block of code to the NascentUpload find_and_
== Tests ==
I added some new tests to test_uploadproc
== Lint ==
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
| Ian Booth (wallyworld) wrote : | # |
I'd like not to have to do that here - the idea was simply to tweak the
existing implementation. There's already been a previous attempt to
re-implement the override stuff as an adaptor but that stuff is not
used everywhere yet. That level of refactoring is best done in a
separate branch. I just wanted to fix the critical here. The
refactoring is not really critical. I think William agrees with the
approach.
On Wed 31 Oct 2012 16:22:20 EST, Steve Kowalik wrote:
> Review: Needs Fixing code
>
> I think I'd rather see this an Override Policy, like SetToExistingOv

I think I'd rather see this an Override Policy, like SetToExistingOv erridePolicy or so. Instantiate it with the uploaded_file, and allow the policy to work everything out.