manifest: remove private osTreeCommit type

Use the ostree.CommitSpec type instead and return it directly from the
pipeline attributes when needed.
This commit is contained in:
Achilleas Koutsou 2022-10-05 15:42:01 +02:00 committed by Tomáš Hozza
parent d32dff14b4
commit 785f9cb7dd
5 changed files with 18 additions and 39 deletions

View file

@ -65,13 +65,8 @@ func (p *OSTreeDeployment) getBuildPackages() []string {
return packages
}
func (p *OSTreeDeployment) getOSTreeCommits() []osTreeCommit {
return []osTreeCommit{
{
checksum: p.commit.Checksum,
url: p.commit.URL,
},
}
func (p *OSTreeDeployment) getOSTreeCommits() []ostree.CommitSpec {
return []ostree.CommitSpec{p.commit}
}
func (p *OSTreeDeployment) serialize() osbuild.Pipeline {