fix(omaha): make Actions a pointer
Setup Actions as a pointer so that we can update it later.
This commit is contained in:
parent
b6c64c1b64
commit
def5edd1b7
1 changed files with 2 additions and 2 deletions
4
omaha.go
4
omaha.go
|
@ -183,7 +183,7 @@ func (m *Manifest) AddPackage(hash string, name string, size string, required bo
|
||||||
|
|
||||||
type Actions struct {
|
type Actions struct {
|
||||||
XMLName xml.Name `xml:"actions"`
|
XMLName xml.Name `xml:"actions"`
|
||||||
Actions []Action `xml:"action"`
|
Actions []*Action `xml:"action"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Action struct {
|
type Action struct {
|
||||||
|
@ -197,7 +197,7 @@ type Action struct {
|
||||||
|
|
||||||
func (m *Manifest) AddAction(event string) *Action {
|
func (m *Manifest) AddAction(event string) *Action {
|
||||||
a := &Action{Event: event}
|
a := &Action{Event: event}
|
||||||
m.Actions.Actions = append(m.Actions.Actions, *a)
|
m.Actions.Actions = append(m.Actions.Actions, a)
|
||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue