fix(omaha): make Actions a pointer

Setup Actions as a pointer so that we can update it later.
This commit is contained in:
Brandon Philips 2013-04-11 12:07:55 -07:00
parent b6c64c1b64
commit def5edd1b7

View file

@ -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
} }