From def5edd1b752a296e836343f112972bae31a9903 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 11 Apr 2013 12:07:55 -0700 Subject: [PATCH] fix(omaha): make Actions a pointer Setup Actions as a pointer so that we can update it later. --- omaha.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omaha.go b/omaha.go index 8249fb5..4d92824 100644 --- a/omaha.go +++ b/omaha.go @@ -183,7 +183,7 @@ func (m *Manifest) AddPackage(hash string, name string, size string, required bo type Actions struct { XMLName xml.Name `xml:"actions"` - Actions []Action `xml:"action"` + Actions []*Action `xml:"action"` } type Action struct { @@ -197,7 +197,7 @@ type Action struct { func (m *Manifest) AddAction(event string) *Action { a := &Action{Event: event} - m.Actions.Actions = append(m.Actions.Actions, *a) + m.Actions.Actions = append(m.Actions.Actions, a) return a }