Merge lp:~julian-edwards/launchpad/no-disabled-arch-publications-bug-648715 into lp:launchpad/db-devel
Status: | Merged |
---|---|
Approved by: | Graham Binns |
Approved revision: | no longer in the source branch. |
Merged at revision: | 9844 |
Proposed branch: | lp:~julian-edwards/launchpad/no-disabled-arch-publications-bug-648715 |
Merge into: | lp:launchpad/db-devel |
Diff against target: |
198 lines (+101/-26) 5 files modified
lib/lp/soyuz/model/distroarchseries.py (+0/-5) lib/lp/soyuz/model/publishing.py (+7/-1) lib/lp/soyuz/model/queue.py (+18/-8) lib/lp/soyuz/scripts/tests/test_copypackage.py (+38/-0) lib/lp/soyuz/tests/test_publishing_top_level_api.py (+38/-12) |
To merge this branch: | bzr merge lp:~julian-edwards/launchpad/no-disabled-arch-publications-bug-648715 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Graham Binns (community) | code | Approve | |
Robert Collins | release-critical | Pending | |
Review via email: mp+36838@code.launchpad.net |
Commit message
Prevent arch-all packages from being published in disabled architectures.
Description of the change
= Summary =
Prevent arch-all packages from being published in disabled architectures
= Description =
A fix was done a while ago that stopped disabled distroarchseries from
publishing. This was the wrong approach - what needs to happen is to prevent
new publications in the first place.
This only happens for arch-all (architecture independent packages) because
directly targeted builds for disabled architectures are already prevented.
= Implementation =
A few stages:
* Remove the old code that prevented publication. We want to do this now so
that old publications can be removed from the repo.
* Modify the test so that it checks that arch-all binaries don't get
published in disabled distroarchseries.
* Change the publication creating code to ignore disabled architectures when
calculating the list of distroarchseries for arch-all packages.
PublishingSet. copyBinariesTo needs to be fixed as well. Ideally this would be abstracted.