Merge lp:~wgrant/launchpad/publisher-release-cleanup into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Abel Deuring |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11730 |
Proposed branch: | lp:~wgrant/launchpad/publisher-release-cleanup |
Merge into: | lp:launchpad |
Prerequisite: | lp:~wgrant/launchpad/better-publisher-index-tests |
Diff against target: |
509 lines (+95/-202) 3 files modified
lib/lp/archivepublisher/ftparchive.py (+12/-71) lib/lp/archivepublisher/publishing.py (+76/-82) lib/lp/archivepublisher/tests/test_publisher.py (+7/-49) |
To merge this branch: | bzr merge lp:~wgrant/launchpad/publisher-release-cleanup |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Abel Deuring (community) | code | Approve | |
Review via email: mp+38530@code.launchpad.net |
Commit message
Replace the messy FTPArchiveHandl
Description of the change
= Summary =
lp.archivepublisher has two index generation mechanisms: native DB publication for partner, debug and PPA archives; and apt-ftparchive publication for primary and copy archives. The apt-ftparchive handler is deprecated and to be phased out, but its release_
== Proposed fix ==
Move release_
== Implementation details ==
While moving release_
So I changed release_
I also removed some duplicated code from lib/lp/
== Tests ==
test_publisher.py has had complex release_
== Demo and Q/A ==
This is just a refactoring. It's fine as long as the tests work.
= Launchpad lint =
There is plenty of inherited lint that could be fixed, but this branch is heavy enough, and there are five following it fixing most of it.