Skip to content

Commit

Permalink
Add debian12 consts to package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
loosebazooka committed Aug 16, 2023
1 parent 0d1ed4c commit 009775e
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 009775e

Please sign in to comment.