diff options
author | Anthony Fok <foka@debian.org> | 2022-08-30 03:52:16 -0600 |
---|---|---|
committer | Anthony Fok <anthony.fok@canada.ca> | 2022-08-30 05:23:18 -0600 |
commit | 160a067c812ef127a3a06e4cdc9278b6108bb205 (patch) | |
tree | 0af91c4a0f2c473f4a7679865100fd27a118955f /releaser/releaser.go | |
parent | e0ba1a805aaa0d0e8ca2563c498722abb2851293 (diff) |
snap: Use "snapcraftctl set-grade"
This, together with 'snapcraftctl set-version", negates the need to
modify snap/snapcraft.yaml upon each release, so the corresponding code
is removed from releaser/releaser.go.
Also, vendorInfo is extended to include the snap version number.
See #10225
Diffstat (limited to 'releaser/releaser.go')
-rw-r--r-- | releaser/releaser.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/releaser/releaser.go b/releaser/releaser.go index afb5079a1..3d00e3a22 100644 --- a/releaser/releaser.go +++ b/releaser/releaser.go @@ -147,16 +147,6 @@ func (r *ReleaseHandler) bumpVersions(ver hugo.Version) error { return err } - snapcraftGrade := "stable" - if ver.Suffix != "" { - snapcraftGrade = "devel" - } - if err := r.replaceInFile("snap/snapcraft.yaml", - `version: "(.*)"`, fmt.Sprintf(`version: "%s"`, ver), - `grade: (.*) #`, fmt.Sprintf(`grade: %s #`, snapcraftGrade)); err != nil { - return err - } - var minVersion string if ver.Suffix != "" { // People use the DEV version in daily use, and we cannot create new themes |