Merge lp:~julian-edwards/launchpad/copy-archive-fix-component into lp:launchpad
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Julian Edwards on 2010-07-01 | ||||||||
| 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 | 2010-06-30 | Approve on 2010-06-30 |
| Jeroen T. Vermeulen (community) | 2010-06-30 | Approve on 2010-06-30 | |
|
Review via email:
|
|||
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/
| James Westby (james-w) wrote : | # |
Hi Julian,
You should fix the docstring of the test that asserts the behaviour
that we don't want.
57 When copying you specify a component, but that component doesn't
58 limit the packages copied. We create a source in main and one in
59 universe, and then copy with --component main, and expect to see
60 both sources in the copy.
Thanks,
James

Looks good.