Skip to content

Commit 08c08a3

Browse files
committed
Add GitRepo and GitCommit setters
1 parent 68838fa commit 08c08a3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

manifest/rfc2822.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ func (manifest Manifest2822) String() string {
202202
return strings.Join(ret, "\n\n")
203203
}
204204

205+
func (entry *Manifest2822Entry) SetGitRepo(arch string, repo string) {
206+
entry.Paragraph.Values[arch+"-GitRepo"] = repo
207+
}
208+
205209
func (entry Manifest2822Entry) ArchGitRepo(arch string) string {
206210
if val, ok := entry.Paragraph.Values[arch+"-GitRepo"]; ok && val != "" {
207211
return val
@@ -216,6 +220,10 @@ func (entry Manifest2822Entry) ArchGitFetch(arch string) string {
216220
return entry.GitFetch
217221
}
218222

223+
func (entry *Manifest2822Entry) SetGitCommit(arch string, commit string) {
224+
entry.Paragraph.Values[arch+"-GitCommit"] = commit
225+
}
226+
219227
func (entry Manifest2822Entry) ArchGitCommit(arch string) string {
220228
if val, ok := entry.Paragraph.Values[arch+"-GitCommit"]; ok && val != "" {
221229
return val

0 commit comments

Comments
 (0)