Skip to content

Commit

Permalink
Merge pull request #1377 from GoogleContainerTools/debian12-part1
Browse files Browse the repository at this point in the history
Add debian12 consts to package manager
  • Loading branch information
loosebazooka authored Aug 16, 2023
2 parents ba0fb57 + 009775e commit 7c4e3a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion debian_package_manager/internal/build/config/distros.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ type Distro int64
const (
DEBIAN10 Distro = iota
DEBIAN11
DEBIAN12
)

var distros = []Distro{DEBIAN10, DEBIAN11}
var distros = []Distro{DEBIAN10, DEBIAN11, DEBIAN12}

func (d Distro) String() string {
switch d {
case DEBIAN10:
return "debian10"
case DEBIAN11:
return "debian11"
case DEBIAN12:
return "debian12"
}
panic("unknown release")
}
Expand All @@ -44,6 +47,8 @@ func (d Distro) Version() int {
return 10
case DEBIAN11:
return 11
case DEBIAN12:
return 12
}
panic("unknown release")
}
Expand All @@ -54,6 +59,8 @@ func (d Distro) Codename() string {
return "buster"
case DEBIAN11:
return "bullseye"
case DEBIAN12:
return "bookworm"
}
panic("unknown release")
}
Expand Down

0 comments on commit 7c4e3a3

Please sign in to comment.