← Back to team overview

launchpad-reviewers team mailing list archive

[Merge] ~lgp171188/launchpad:add-core26-to-core-snap-names into launchpad:master

 

Guruprasad has proposed merging ~lgp171188/launchpad:add-core26-to-core-snap-names into launchpad:master.

Commit message:
Add core26 to the list of known core snap names

This should allow snap recipes that use core26 to control which channel
is used for them.

This is based on what was done to create the core24 base snap and
cjwatson's advice on how to create future core snaps in
https://bugs.launchpad.net/launchpad/+bug/2012405/comments/2.


Requested reviews:
  Launchpad code reviewers (launchpad-reviewers)

For more details, see:
https://code.launchpad.net/~lgp171188/launchpad/+git/launchpad/+merge/494301
-- 
Your team Launchpad code reviewers is requested to review the proposed merge of ~lgp171188/launchpad:add-core26-to-core-snap-names into launchpad:master.
diff --git a/lib/lp/services/fields/__init__.py b/lib/lp/services/fields/__init__.py
index 63abc88..a0b755d 100644
--- a/lib/lp/services/fields/__init__.py
+++ b/lib/lp/services/fields/__init__.py
@@ -1012,7 +1012,14 @@ class InlineObject(Object):
 class SnapBuildChannelsField(Dict):
     """A field that holds source snap channels for builds."""
 
-    _core_snap_names = ["core", "core18", "core20", "core22", "core24"]
+    _core_snap_names = [
+        "core",
+        "core18",
+        "core20",
+        "core22",
+        "core24",
+        "core26",
+    ]
 
     def __init__(
         self,