From d68e528e596f81d362bd950c74ed48652033110a Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Wed, 26 Jun 2013 10:23:06 -0700 Subject: [PATCH] feat(omaha): add disablebackoff field to action another extension added by the the chromeos update engine --- omaha/omaha.go | 1 + omaha/omaha_test.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/omaha/omaha.go b/omaha/omaha.go index 86710d6..54183be 100644 --- a/omaha/omaha.go +++ b/omaha/omaha.go @@ -199,6 +199,7 @@ type Action struct { Sha256 string `xml:"sha256,attr"` NeedsAdmin bool `xml:"needsadmin,attr"` IsDelta bool `xml:"IsDelta,attr"` + DisablePayloadBackoff bool `xml:"DisablePayloadBackoff,attr,omitempty"` } func (m *Manifest) AddAction(event string) *Action { diff --git a/omaha/omaha_test.go b/omaha/omaha_test.go index ca43c41..594d69c 100644 --- a/omaha/omaha_test.go +++ b/omaha/omaha_test.go @@ -61,6 +61,7 @@ func ExampleOmaha_NewResponse() { a.Sha256 = "0VAlQW3RE99SGtSB5R4m08antAHO8XDoBMKDyxQT/Mg=" a.NeedsAdmin = false a.IsDelta = true + a.DisablePayloadBackoff = true if raw, err := xml.MarshalIndent(response, "", " "); err != nil { fmt.Println(err) @@ -84,7 +85,7 @@ func ExampleOmaha_NewResponse() { // // // - // + // // // //