In snapd-seed-glue, remove redundant decoding/encoding for account key.
This commit is contained in:
parent
573cdfe186
commit
4cbf003726
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
snapd-extra-utils (1.0.2ubuntu1) UNRELEASED; urgency=medium
|
||||
|
||||
* In snapd-seed-glue, remove redundant decoding/encoding for account key.
|
||||
|
||||
-- Simon Quigley <tsimonq2@ubuntu.com> Sat, 23 Nov 2024 21:05:07 -0600
|
||||
|
||||
snapd-extra-utils (1.0.2) plucky; urgency=medium
|
||||
|
||||
* Fix edge cases where the snap revision may be older in the target channel
|
||||
|
@ -62,12 +62,7 @@ func ensureAssertions(assertionsDir string) {
|
||||
if signKeySha3 == "" {
|
||||
log.Fatalf("Failed to extract sign-key-sha3-384 from model assertion.")
|
||||
}
|
||||
decodedSignKey, err := base64.StdEncoding.DecodeString(signKeySha3)
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to decode sign-key-sha3-384: %v", err)
|
||||
}
|
||||
encodedSignKey := base64.StdEncoding.EncodeToString(decodedSignKey)
|
||||
output, err := exec.Command("snap", "known", "--remote", "account-key", "public-key-sha3-384="+encodedSignKey).CombinedOutput()
|
||||
output, err := exec.Command("snap", "known", "--remote", "account-key", "public-key-sha3-384="+signKeySha3).CombinedOutput()
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to fetch account-key assertion: %v, Output: %s", err, string(output))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user