Merge lp:~wgrant/launchpad/publisher-release-cleanup into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Abel Deuring on 2010-10-15 |
| 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 | 2010-10-15 | Approve on 2010-10-15 |
|
Review via email:
|
|||
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.
