Пример #1
0
func addCoreosExtraInfo(a *api.API, pkg *api.Package, m *omahaSpec.Manifest) error {
	c, err := a.GetCoreosAction(pkg.ID)
	if err != nil {
		return err
	}
	action := m.AddAction(c.Event)
	action.ChromeOSVersion = c.ChromeOSVersion
	action.Sha256 = c.Sha256
	action.NeedsAdmin = c.NeedsAdmin
	action.IsDelta = c.IsDelta
	action.DisablePayloadBackoff = c.DisablePayloadBackoff
	action.MetadataSignatureRsa = c.MetadataSignatureRsa
	action.MetadataSize = c.MetadataSize
	action.Deadline = c.Deadline
	return nil
}
Пример #2
0
func addContainerExtraInfo(pkg *api.Package, m *omahaSpec.Manifest) error {
	action := m.AddAction("update_app")
	// Send the application type when it's a container (for containers_updater)
	action.ChromeOSVersion = strconv.Itoa(pkg.Type)
	return nil
}