Exemplo n.º 1
0
func NewIncompleteRelease(relVerRec bhrelsrepo.ReleaseVersionRec, name string) Release {
	return Release{
		relVerRec: relVerRec,

		Source: NewSource(relVerRec.AsSource()),

		Name:    name,
		Version: relVerRec.Version(),
	}
}
Exemplo n.º 2
0
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
}