distro: add Distro.Name()

Right now, there is no way to get at the name from a Distro instance.
We will need this to include the distro's name in the job we pass to the
worker, for instance.
This commit is contained in:
Lars Karlitski 2019-12-15 13:44:59 +01:00 committed by Tom Gundersen
parent ba32f58ac8
commit 8c4ee795f7
4 changed files with 25 additions and 3 deletions

View file

@ -38,6 +38,8 @@ type output struct {
Assembler func(uefi bool) *pipeline.Assembler
}
const Name = "rhel-8.2"
func New() *RHEL82 {
const GigaByte = 1024 * 1024 * 1024
@ -392,6 +394,10 @@ func New() *RHEL82 {
return &r
}
func (r *RHEL82) Name() string {
return Name
}
func (r *RHEL82) Repositories(arch string) []rpmmd.RepoConfig {
return []rpmmd.RepoConfig{
{