Merge lp:~julian-edwards/launchpad/sync-close-bugs-bug-833736 into lp:launchpad
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Graham Binns | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | 13835 | ||||||||
Proposed branch: | lp:~julian-edwards/launchpad/sync-close-bugs-bug-833736 | ||||||||
Merge into: | lp:launchpad | ||||||||
Prerequisite: | lp:~julian-edwards/launchpad/changelogs-bug-827576 | ||||||||
Diff against target: |
447 lines (+266/-30) 7 files modified
database/schema/security.cfg (+4/-1) lib/lp/soyuz/enums.py (+12/-0) lib/lp/soyuz/scripts/packagecopier.py (+19/-14) lib/lp/soyuz/scripts/processaccepted.py (+52/-10) lib/lp/soyuz/scripts/tests/test_processaccepted.py (+91/-0) lib/lp/soyuz/tests/test_packagecopyjob.py (+82/-0) scripts/ftpmaster-tools/sync-source.py (+6/-5) |
||||||||
To merge this branch: | bzr merge lp:~julian-edwards/launchpad/sync-close-bugs-bug-833736 | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+73401@code.launchpad.net |
This proposal supersedes a proposal from 2011-08-30.
Commit message
[r=gmb][bug=833736] When syncing packages to a distribution, make sure any bugs referenced in the package's changelog are closed.
Description of the change
This branch fixes bug 833736 by ensuring that bugs mentioned in Debian package changelogs are closed when the package is synced to Ubuntu.
The fix is mainly in 2 places:
1. The packagecopier determines the most recently published version of the package being copied and passes that to the bug closing code.
2. The bug closing code is fixed to parse changelogs (it only used to parse the changes file) and grabs as many version chunks as necessary to complete the missing history.
I also refactored the regexes that the sync-source script uses to scan changelogs.