Merge lp:~julian-edwards/launchpad/no-disabled-arch-publications-bug-648715 into lp:launchpad/db-devel
| Status: | Merged |
|---|---|
| Approved by: | Graham Binns on 2010-09-28 |
| 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 on 2010-09-28 | |
| Graham Binns (community) | code | 2010-09-28 | Approve on 2010-09-28 |
| Robert Collins | release-critical | 2010-09-28 | Pending |
|
Review via email:
|
|||
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.
| Julian Edwards (julian-edwards) wrote : | # |
I've added a new revision that also does the same check when copying packages
betweeb distroseries. Would you mind blessing that too please? Thanks.
(partial diff attached)
| Graham Binns (gmb) wrote : | # |
> I've added a new revision that also does the same check when copying packages
> betweeb distroseries. Would you mind blessing that too please? Thanks.
> (partial diff attached)
r=me on those changes.

PublishingSet. copyBinariesTo needs to be fixed as well. Ideally this would be abstracted.