Merge lp:~wgrant/launchpad/bug-655614-disabled-arch-indices into lp:launchpad/db-devel
Proposed by
William Grant
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Julian Edwards | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 9875 | ||||
Proposed branch: | lp:~wgrant/launchpad/bug-655614-disabled-arch-indices | ||||
Merge into: | lp:launchpad/db-devel | ||||
Diff against target: |
211 lines (+100/-23) 4 files modified
lib/lp/archivepublisher/config.py (+3/-2) lib/lp/archivepublisher/ftparchive.py (+7/-0) lib/lp/archivepublisher/publishing.py (+10/-7) lib/lp/archivepublisher/tests/test_publisher.py (+80/-14) |
||||
To merge this branch: | bzr merge lp:~wgrant/launchpad/bug-655614-disabled-arch-indices | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Julian Edwards (community) | Approve | ||
Review via email: mp+37849@code.launchpad.net |
Commit message
Don't publish indices for disabled architectures.
Description of the change
Both the publication methods (NMAF and a-f) still publish indices for disabled architectures every time the pocket is dirtied. This is pointless pollution, as these indices will be empty.
This branch fixes both publishers to not publish any indices for disabled archs, and also to exclude them from the series Release file. It adds tests to confirm that neither publisher writes disabled indices, or even creates directories for them.
The revolting hack in lib/lp/
To post a comment you must log in.
I am testing and landing. If it works on on dogfood I'll cherry pick too, thanks for writing this William.