distro: expose the ModulePlatfromID

This is needed for depsolving, so expose it from the distro package
so it can be passed to dnf-json (and not only to osbuild) as that does
depsolving too.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-02-04 16:55:55 +01:00 committed by msehnout
parent d133454d91
commit f0f2e80a97
5 changed files with 82 additions and 2 deletions

View file

@ -11,6 +11,8 @@ import (
type FedoraTestDistro struct{}
const ModulePlatformID = "platform:f30"
func New() *FedoraTestDistro {
return &FedoraTestDistro{}
}
@ -23,6 +25,10 @@ func (d *FedoraTestDistro) Distribution() common.Distribution {
return common.Fedora30
}
func (d *FedoraTestDistro) ModulePlatformID() string {
return ModulePlatformID
}
func (d *FedoraTestDistro) Repositories(arch string) []rpmmd.RepoConfig {
return []rpmmd.RepoConfig{
{