From d1085b806f4cbdd9deccce0b5ac82043d3aef3e9 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Wed, 2 Jun 2021 06:49:42 +0200 Subject: [PATCH] 21.05 release (#311) * Bump unstable and add 21.05 release * The usual typos * The frontend stuff was missing * preserve the order * Update import-scripts/import_scripts/channel.py Co-authored-by: Rok Garbas Co-authored-by: Jonathan Ringer --- import-scripts/import_scripts/channel.py | 4 ++-- src/Search.elm | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/import-scripts/import_scripts/channel.py b/import-scripts/import_scripts/channel.py index 4e8dc6d..7f4c21f 100644 --- a/import-scripts/import_scripts/channel.py +++ b/import-scripts/import_scripts/channel.py @@ -32,8 +32,8 @@ CURRENT_DIR = os.path.dirname(os.path.abspath(__file__)) INDEX_SCHEMA_VERSION = os.environ.get("INDEX_SCHEMA_VERSION", 0) DIFF_OUTPUT = ["json", "stats"] CHANNELS = { - "unstable": "nixos/unstable/nixos-21.05pre", - "20.03": "nixos/20.03/nixos-20.03.", + "unstable": "nixos/unstable/nixos-21.11pre", + "21.05": "nixos/21.05/nixos-21.05.", "20.09": "nixos/20.09/nixos-20.09.", } ALLOWED_PLATFORMS = ["x86_64-linux", "aarch64-linux", "x86_64-darwin", "i686-linux"] diff --git a/src/Search.elm b/src/Search.elm index 42eba41..e221868 100644 --- a/src/Search.elm +++ b/src/Search.elm @@ -371,8 +371,8 @@ createUrl toRoute model = type Channel = Unstable - | Release_20_03 | Release_20_09 + | Release_21_05 {-| TODO: we should consider using more dynamic approach here @@ -388,7 +388,7 @@ type alias ChannelDetails = defaultChannel : String defaultChannel = - "20.09" + "21.05" channelDetails : Channel -> ChannelDetails @@ -397,12 +397,12 @@ channelDetails channel = Unstable -> ChannelDetails "unstable" "unstable" "nixos/trunk-combined" "nixos-unstable" - Release_20_03 -> - ChannelDetails "20.03" "20.03" "nixos/release-20.03" "nixos-20.03" - Release_20_09 -> ChannelDetails "20.09" "20.09" "nixos/release-20.09" "nixos-20.09" + Release_21_05 -> + ChannelDetails "21.05" "21.05" "nixos/release-21.05" "nixos-21.05" + channelFromId : String -> Maybe Channel channelFromId channel_id = @@ -410,12 +410,12 @@ channelFromId channel_id = "unstable" -> Just Unstable - "20.03" -> - Just Release_20_03 - "20.09" -> Just Release_20_09 + "21.05" -> + Just Release_21_05 + _ -> Nothing @@ -428,8 +428,8 @@ channelDetailsFromId channel_id = channels : List String channels = - [ "20.03" - , "20.09" + [ "20.09" + , "21.05" , "unstable" ]