From c3aa505f2b75d3236bf603349a2fdde79901c050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sawicz?= Date: Tue, 27 Feb 2024 00:54:39 +0100 Subject: [PATCH] snap: fix grade-setting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > variable 'grade' can be set only once. Signed-off-by: MichaƂ Sawicz --- snap/snapcraft.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 7a82b22f6..7970508d4 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -159,12 +159,13 @@ parts: - qttools5-dev override-pull: | craftctl default - craftctl set grade=devel if [ ! -f latest-subsurface-buildnumber ]; then git fetch --depth=1 https://github.com/subsurface/nightly-builds.git branch-for-$( git rev-parse HEAD ) git checkout FETCH_HEAD latest-subsurface-buildnumber # We succeeded getting the release version, allow publishing above `beta` craftctl set grade=stable + else + craftctl set grade=devel fi craftctl set version=$( scripts/get-version ) override-build: |