Merge lp:~jelmer/launchpad/bug471148 into lp:launchpad/db-devel
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Jelmer Vernooij on 2010-02-26 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | not available | ||||
| Proposed branch: | lp:~jelmer/launchpad/bug471148 | ||||
| Merge into: | lp:launchpad/db-devel | ||||
| Diff against target: |
711 lines (+423/-18) 18 files modified
database/sampledata/current-dev.sql (+5/-4) database/sampledata/current.sql (+5/-4) database/schema/patch-2207-35-0.sql (+8/-0) database/schema/security.cfg (+2/-2) lib/lp/soyuz/browser/archive.py (+1/-1) lib/lp/soyuz/configure.zcml (+2/-1) lib/lp/soyuz/interfaces/archive.py (+3/-0) lib/lp/soyuz/interfaces/archivearch.py (+11/-0) lib/lp/soyuz/interfaces/processor.py (+24/-1) lib/lp/soyuz/model/archive.py (+35/-0) lib/lp/soyuz/model/archivearch.py (+16/-0) lib/lp/soyuz/model/processor.py (+12/-0) lib/lp/soyuz/model/publishing.py (+25/-5) lib/lp/soyuz/tests/test_archive.py (+53/-0) lib/lp/soyuz/tests/test_archivearch.py (+57/-0) lib/lp/soyuz/tests/test_processor.py (+32/-0) lib/lp/soyuz/tests/test_publishing.py (+99/-0) lib/lp/testing/factory.py (+33/-0) |
||||
| To merge this branch: | bzr merge lp:~jelmer/launchpad/bug471148 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Björn Tillenius (community) | db | 2010-02-26 | Approve on 2010-02-26 |
| Stuart Bishop | db | 2010-02-25 | Approve on 2010-02-26 |
| Paul Hummer (community) | code | 2010-02-25 | Approve on 2010-02-25 |
|
Review via email:
|
|||
This proposal supersedes a proposal from 2010-02-24.
Commit Message
Add restricted flag to processor families and allow them to be overriden on a per-archive basis.
| Jelmer Vernooij (jelmer) wrote : | # |
| Jeroen T. Vermeulen (jtv) wrote : | # |
It looks as if this diff got polluted with extraneous changes.
| Jelmer Vernooij (jelmer) wrote : | # |
Hi Jeroen,
On Wed, 2010-02-24 at 18:18 +0000, Jeroen T. Vermeulen wrote:
> It looks as if this diff got polluted with extraneous changes.
The sampledata doesn't appear to have been regenerated a couple of times
after some other schema changes landed, and that causes the diff to
database/
change I've made to the sample data is to add a ARM processor family
that has the new restricted column set to true. Other than that, this is
a fairly simple branch against db-devel.
If you'd rather have me submit a separate branch that just runs "make
newsampledata" in db-devel so that the diff for this branch isn't
cluttered by it, please let me know.
Cheers,
Jelmer
| Jelmer Vernooij (jelmer) wrote : | # |
Muharem has now submitted a separate branch which just updates the existing sampledata, that should make the diff for this branch a fair bit smaller.
| Muharem Hrnjadovic (al-maisan) wrote : | # |
Yep, it's lp:~al-maisan/launchpad/sampledata-update and it was just approved.
| Paul Hummer (rockstar) wrote : | # |
<rockstar> jelmer, is this diff up to date? Does it have a dependent branch?
<jelmer> rockstar: the bug471148 one? That's current now
<rockstar> jelmer, okay.
<jelmer> rockstar: It's a fair bit smaller now that Muharems prerequisite branch has landed.
<rockstar> jelmer, you should set the prerequisite branch on the mp anyway, because it's informational.
<jelmer> rockstar: Even if that branch has already landed?
<rockstar> jelmer, yeah, it's still a good idea to say "I based my work off of this work."
<rockstar> Not a necessity, but for history's sake.
<jelmer> rockstar: Ah, that makes sense. I'll keep that in mind for next time.
<rockstar> jelmer, your tests need comments/
<rockstar> lib/lp/
<rockstar> Actually, it looks like some of the tests have docstrings, so you'll probably just need to add the docstrings to the ones that lack them.
<jelmer> ok
<rockstar> jelmer, good on you for adding factory methods for your new work.
<jelmer> rockstar: Thanks
<rockstar> jelmer, other than the missing docstrings, this looks like very good work.
| Stuart Bishop (stub) wrote : | # |
So if there are no ArchArchive entries, the archive is build with all the non-retricted architectures.
A less generic name might be nice, but I can't think of a better term right now.
Looks fine anyway. Patch number patch-2207-
| Björn Tillenius (bjornt) wrote : | # |
I also would like to see a better name, but can't think of any right now.

This makes it possible for processor families to be marked restricted. Source packages in archives will only be built using these processor families if they are explicitly permitted, using an entry in ArchiveArch.
This patch also adds some infrastructure to create processor families and processors, which we use for testing.
I reran "make newsampledata" which doesn't appear to have happened in a while, so there are some updates there related to earlier branches as well.