Merge lp:~rvb/launchpad/override-bug-826870 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Julian Edwards |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13769 |
Proposed branch: | lp:~rvb/launchpad/override-bug-826870 |
Merge into: | lp:launchpad |
Diff against target: |
313 lines (+140/-30) 6 files modified
lib/lp/archiveuploader/nascentupload.py (+5/-16) lib/lp/soyuz/adapters/overrides.py (+44/-9) lib/lp/soyuz/adapters/tests/test_overrides.py (+25/-0) lib/lp/soyuz/model/packagecopyjob.py (+4/-3) lib/lp/soyuz/tests/test_packagecopyjob.py (+61/-1) lib/lp/soyuz/tests/test_publishing.py (+1/-1) |
To merge this branch: | bzr merge lp:~rvb/launchpad/override-bug-826870 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Approve | ||
Review via email: mp+72586@code.launchpad.net |
Commit message
[r=julian-edwards][bug=826870] Fix UnknownOverride
Description of the change
This branch fixes the UnknownOverride
= Tests =
./bin/test -vvc test_overrides test_getCompone
./bin/test -vvc test_overrides test_getCompone
./bin/test -vvc test_overrides test_getCompone
./bin/test -vvc test_packagecopyjob test_copying_
./bin/test -vvc test_packagecopyjob test_copying_
= QA =
Upload sources into debian components 'non-free' and 'contrib' and make sure that the default selected components for these source uploads are 'multiverse'.
That is a little bit of a quandary over the sources vs source. Since we can pass multiple sources at once then the choice is either to assume they are all the same component in their source, or pass multiple components. Since we generally only process one source at a time in PCJ I am fine with the single component here. If we ever do multiple then we'll have to batch overrides by source component.
So overall, it looks good - just a couple of things, I'd s/sources_ component/ source_ component/ g and move the DEBIAN_ COMPONENT_ OVERRIDE_ MAP/DEFAULT_ OVERRIDE_ COMPONENT into the class, I don't think it's useful having it at the module level since we want to encourage people to use the new method.
168 + # getComponentOve rride returns the default component namewhen an
Typo "namewhen"
Thanks for the change!