From cb57140ae641263d95a207ea5c7a7c929b3f6b0b Mon Sep 17 00:00:00 2001 From: Simon de Vlieger Date: Wed, 20 Dec 2023 14:19:27 +0100 Subject: [PATCH] anaconda: implement getostreecommitsources --- pkg/manifest/anaconda_installer_iso_tree.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/manifest/anaconda_installer_iso_tree.go b/pkg/manifest/anaconda_installer_iso_tree.go index 91ab42ea83..0cb8481b44 100644 --- a/pkg/manifest/anaconda_installer_iso_tree.go +++ b/pkg/manifest/anaconda_installer_iso_tree.go @@ -80,6 +80,15 @@ func NewAnacondaInstallerISOTree(buildPipeline *Build, anacondaPipeline *Anacond return p } +func (p *AnacondaInstallerISOTree) getOSTreeCommitSources() []ostree.SourceSpec { + if p.CommitSource == nil { + return []ostree.SourceSpec{} + } + return []ostree.SourceSpec{ + *p.CommitSource, + } +} + func (p *AnacondaInstallerISOTree) getOSTreeCommits() []ostree.CommitSpec { if p.commitSpec == nil { return nil