From 10955a143c81dae6cf7f82cd6dc21a3b9479b30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=28Buo-ren=20Lin=29?= Date: Tue, 16 Apr 2019 18:10:49 +0800 Subject: [PATCH] snap: Replace deprecated build and install keyword MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These keywords has been obsoleted in Snapcraft 3. Refer-to: The 'build' keyword has been replaced by 'override-build' Refer-to: The 'install' keyword has been replaced by 'override-build' Signed-off-by: ๆž—ๅšไป(Buo-ren Lin) --- snap/snapcraft.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 83ae66d..73d0eeb 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -38,7 +38,7 @@ parts: build-packages: - cabal-install - squid3 - build: | + override-build: | # See comments in .snapsquid.conf [ "$http_proxy" ] && { squid3 -f .snapsquid.conf @@ -48,6 +48,6 @@ parts: cabal sandbox init cabal update || cat /var/log/squid/* cabal install -j - install: | + install -d $SNAPCRAFT_PART_INSTALL/usr/bin install .cabal-sandbox/bin/shellcheck $SNAPCRAFT_PART_INSTALL/usr/bin