Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add debian12 consts to package manager #1377

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading