Merge lp:~julian-edwards/launchpad/copy-archive-fix-component into lp:launchpad
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Julian Edwards | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | 11088 | ||||||||
Proposed branch: | lp:~julian-edwards/launchpad/copy-archive-fix-component | ||||||||
Merge into: | lp:launchpad | ||||||||
Diff against target: |
92 lines (+21/-17) 2 files modified
lib/lp/soyuz/model/packagecloner.py (+7/-2) lib/lp/soyuz/scripts/tests/test_populatearchive.py (+14/-15) |
||||||||
To merge this branch: | bzr merge lp:~julian-edwards/launchpad/copy-archive-fix-component | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis J. Lacoste (community) | release-critical | Approve | |
Jeroen T. Vermeulen (community) | Approve | ||
Review via email: mp+28871@code.launchpad.net |
Description of the change
= Summary =
Creation of COPY (rebuild) archives doesn't respect the specified component.
This fix is required for an urgent cherry pick as the Linaro guys need a
rebuild for ARM set up.
== Pre-implementation notes ==
Chatted to Muharem who identified the culprit code which is an SQL query that
ignores the component specified for the copy operation.
== Implementation details ==
Add the component to the query if it's been specified. Also fix a bunch of
tests that relied on the broken behaviour.
== Tests ==
bin/test -cvv test_populatear
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
lib/lp/
Looks good.