func NewIncompleteRelease(relVerRec bhrelsrepo.ReleaseVersionRec, name string) Release { return Release{ relVerRec: relVerRec, Source: NewSource(relVerRec.AsSource()), Name: name, Version: relVerRec.Version(), } }
func NewRelease(relVerRec bhrelsrepo.ReleaseVersionRec, r bprel.Release) Release { rel := Release{ relVerRec: relVerRec, Source: NewSource(relVerRec.AsSource()), Name: r.Name, Version: relVerRec.Version(), CommitHash: r.CommitHash, IsLatest: false, } rel.Jobs = NewJobs(r.Jobs, rel) rel.Packages = NewPackages(r.Packages, rel) return rel }