Repository: incubator-mynewt-newt Updated Branches: refs/heads/develop 7a7b63871 -> 9c5047253
MYNEWT-519 img_mgmt - Indicate "permanent" flag. Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/9c504725 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/9c504725 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/9c504725 Branch: refs/heads/develop Commit: 9c50472538ab73453b1ecaf568cde01842ef16cd Parents: 7a7b638 Author: Christopher Collins <[email protected]> Authored: Wed Dec 21 13:48:28 2016 -0800 Committer: Christopher Collins <[email protected]> Committed: Wed Dec 21 13:48:28 2016 -0800 ---------------------------------------------------------------------- newtmgr/cli/image.go | 3 +++ newtmgr/protocol/imagestate.go | 1 + 2 files changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/9c504725/newtmgr/cli/image.go ---------------------------------------------------------------------- diff --git a/newtmgr/cli/image.go b/newtmgr/cli/image.go index 47bcb9e..a70a68f 100644 --- a/newtmgr/cli/image.go +++ b/newtmgr/cli/image.go @@ -56,6 +56,9 @@ func imageFlagsStr(image protocol.ImageStateEntry) string { if image.Pending { strs = append(strs, "pending") } + if image.Permanent { + strs = append(strs, "permanent") + } return strings.Join(strs, " ") } http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/9c504725/newtmgr/protocol/imagestate.go ---------------------------------------------------------------------- diff --git a/newtmgr/protocol/imagestate.go b/newtmgr/protocol/imagestate.go index 3c2feaf..44c6f59 100644 --- a/newtmgr/protocol/imagestate.go +++ b/newtmgr/protocol/imagestate.go @@ -34,6 +34,7 @@ type ImageStateEntry struct { Pending bool `codec:"pending"` Confirmed bool `codec:"confirmed"` Active bool `codec:"active"` + Permanent bool `codec:"permanent"` } type ImageStateRsp struct {
