Add new dbschema item for archive semantics
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Julian Edwards |
Bug Description
As part of the commercial repo work, we need a way of linking a distribution
to an archive via some context.
Make a DBSchema item that hardcodes the semantics -- so some tuples might
look like this:
ubuntu-public /srv/archive.
ubuntu-security /srv/security.
ubuntu-commercial /srv/archive.
ubuntu-obsolete /srv/obsolete.
(I called it "public" and not "main" archive to avoid confusion with the
main archive).
- OBSOLETE_ARCHIVE could store warty and hoary, for instance.
- SECURITY_ARCHIVE is published to a directory called .internal for
good reason!
- Are there other archives we'd like to have related to a distro?
This would still require some hardcoding of the behaviours in code but I
think that's a more flexible and simpler model than a full-blown
parametrized model. And we could have separate code modules to handle
what's specific in each of those cases.
Changed in soyuz: | |
assignee: | nobody → julian-edwards |
status: | Unconfirmed → Confirmed |
Changed in soyuz: | |
importance: | Undecided → Critical |
Changed in soyuz: | |
importance: | Critical → High |
Changed in soyuz: | |
status: | In Progress → Fix Committed |
Changed in soyuz: | |
status: | Fix Committed → Fix Released |
I have rejected bug 119920, this bug will now encompass the work involved with that as it makes more sense to do it here. As part of this bug we'll now also create the DistributionArchive table, which a schema something like:
archive (int) hivePurpose (DBSchema enum, as above)
path (string)
distribution (int)
DistributionArc