launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #29905
[Merge] ~cjwatson/launchpad:distribution-active-comment into launchpad:master
Colin Watson has proposed merging ~cjwatson/launchpad:distribution-active-comment into launchpad:master.
Commit message:
Add a brief comment on Distribution.active
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~cjwatson/launchpad/+git/launchpad/+merge/440879
--
Your team Launchpad code reviewers is requested to review the proposed merge of ~cjwatson/launchpad:distribution-active-comment into launchpad:master.
diff --git a/lib/lp/registry/model/distribution.py b/lib/lp/registry/model/distribution.py
index e02fc3d..cf812a7 100644
--- a/lib/lp/registry/model/distribution.py
+++ b/lib/lp/registry/model/distribution.py
@@ -317,6 +317,8 @@ class Distribution(
enum=TranslationPermission,
default=TranslationPermission.OPEN,
)
+ # Distributions can't be deactivated. This is just here in order to
+ # implement the `IPillar` interface.
active = True
official_packages = BoolCol(notNull=True, default=False)
supports_ppas = BoolCol(notNull=True, default=False)