~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archivepublisher/__init__.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-30 13:14:31 UTC
  • mfrom: (13822.1.2 dominator-cleanup)
  • Revision ID: launchpad@pqm.canonical.com-20110830131431-7x8046b7v46wzbbi
[r=julian-edwards][bug=832647] Clean up dominator for use by gina.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
 
__all__ = ['HARDCODED_COMPONENT_ORDER', 'ELIGIBLE_DOMINATION_STATES']
5
 
 
6
 
from lp.soyuz.enums import PackagePublishingStatus
 
4
__all__ = ['HARDCODED_COMPONENT_ORDER']
7
5
 
8
6
# XXX: kiko 2006-08-23: if people actually start seriously using
9
7
# ComponentSelections this will need to be revisited. For instance, adding
10
8
# new components will break places which use this list.
11
9
HARDCODED_COMPONENT_ORDER = [
12
10
    'main', 'restricted', 'universe', 'multiverse', 'partner']
13
 
 
14
 
# This list contains the states that are eligible for domination and death
15
 
# row processing.
16
 
ELIGIBLE_DOMINATION_STATES = [
17
 
    PackagePublishingStatus.SUPERSEDED,
18
 
    PackagePublishingStatus.DELETED,
19
 
    PackagePublishingStatus.OBSOLETE,
20
 
    ]