Skip to content
Permalink
Browse files

update code names (sort order, default release) for buster release

  • Loading branch information...
stapelberg committed Jul 8, 2019
1 parent 3d27f57 commit e36cb8dc4d7e7581d0762750a4ac4e4479c42943
Showing with 4 additions and 2 deletions.
  1. +3 −1 cmd/debiman/rendermanpage.go
  2. +1 −1 internal/redirect/redirect.go
@@ -48,14 +48,16 @@ var releaseList = []string{
"buster-backports",
"bullseye",
"bullseye-backports",
"bookworm",
"bookworm-backports",
}
var sortOrder = make(map[string]int)

func init() {
for idx, r := range releaseList {
sortOrder[r] = idx
}
sortOrder["testing"] = sortOrder["stretch"]
sortOrder["testing"] = sortOrder["bullseye"]
sortOrder["unstable"] = len(releaseList)
sortOrder["experimental"] = sortOrder["unstable"] + 1
}
@@ -35,7 +35,7 @@ type Index struct {
}

// TODO(later): the default suite should be the latest stable release
const defaultSuite = "stretch"
const defaultSuite = "buster"
const defaultLanguage = "en"

// bestLanguageMatch is like bestLanguageMatch in rendermanpage.go, but for the redirector index. TODO: can we de-duplicate the code?

0 comments on commit e36cb8d

Please sign in to comment.
You can’t perform that action at this time.