Merge lp:~stevenk/launchpad/attemptcopy-no-source into lp:launchpad
Proposed by
Steve Kowalik
on 2012-10-04
| Status: | Merged |
|---|---|
| Approved by: | Steve Kowalik on 2012-10-04 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 16087 |
| Proposed branch: | lp:~stevenk/launchpad/attemptcopy-no-source |
| Merge into: | lp:launchpad |
| Diff against target: |
100 lines (+54/-10) 2 files modified
lib/lp/soyuz/model/packagecopyjob.py (+16/-10) lib/lp/soyuz/tests/test_packagecopyjob.py (+38/-0) |
| To merge this branch: | bzr merge lp:~stevenk/launchpad/attemptcopy-no-source |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| William Grant | code | 2012-10-04 | Approve on 2012-10-04 |
|
Review via email:
|
|||
Description of the Change
When a PCJ is created to copy just binaries from one pocket to another, the PCJ machinery attempts to update package diffs for the copied source publication. Except there isn't one and so it OOPSes.
I have corrected the lie that was the variable 'copied_sources' and now iterate all copied publications looking for sources and only perform package diff things if we found one.
I will claim LoC credit against https:/
To post a comment you must log in.

You can probably drop the explicit sourcepackagename and version from the test, but otherwise looks good.