From d31ea312aac7d3dac4dbebfa8f123baced68342e 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..a7c147171b 100644 --- a/pkg/manifest/anaconda_installer_iso_tree.go +++ b/pkg/manifest/anaconda_installer_iso_tree.go @@ -87,6 +87,15 @@ func (p *AnacondaInstallerISOTree) getOSTreeCommits() []ostree.CommitSpec { return []ostree.CommitSpec{*p.commitSpec} } +func (p *AnacondaInstallerISOTree) getOSTreeCommitSources() []ostree.CommitSpec { + if p.CommitSource == nil { + return []ostree.SourceSpec{} + } + return []ostree.SourceSpec{ + *p.CommitSource, + } +} + func (p *AnacondaInstallerISOTree) getContainerSpecs() []container.Spec { if p.containerSpec == nil { return []container.Spec{}