mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 17:44:35 +03:00
fix output of "mox checkupdate", and specify changes to be from newest to oldest
This commit is contained in:
@ -51,11 +51,12 @@ func cmdUpdatesAddSigned(c *cmd) {
|
||||
// todo future: enforce this format?
|
||||
sig := ed25519.Sign(privKey, buf)
|
||||
|
||||
changelog.Changes = append(changelog.Changes, updates.Change{
|
||||
change := updates.Change{
|
||||
PubKey: privKey.Public().(ed25519.PublicKey),
|
||||
Sig: sig,
|
||||
Text: string(buf),
|
||||
})
|
||||
}
|
||||
changelog.Changes = append([]updates.Change{change}, changelog.Changes...)
|
||||
|
||||
var b bytes.Buffer
|
||||
enc := json.NewEncoder(&b)
|
||||
|
Reference in New Issue
Block a user