distro: add a Sources method

This outputs the sources needed for the pipeline generated for the
distro. At the moment no pipelines require sources, and so this
always returns the empty list.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2020-02-13 14:59:13 +01:00 committed by msehnout
parent 7f97401ef8
commit 2d675ea51b
5 changed files with 20 additions and 0 deletions

View file

@ -63,6 +63,10 @@ func (d *TestDistro) Pipeline(b *blueprint.Blueprint, additionalRepos []rpmmd.Re
return nil, errors.New("invalid output format or arch: " + outputFormat + " @ " + outputArch)
}
func (d *TestDistro) Sources(packages []rpmmd.PackageSpec) *osbuild.Sources {
return &osbuild.Sources{}
}
func (d *TestDistro) Runner() string {
return "org.osbuild.test"
}