view ci/remove_snap.sh @ 34322:840146fba64b v9.1.0095

patch 9.1.0095: tests: test_restricted() fails Commit: https://github.com/vim/vim/commit/52eb0b867704e43049cb396e64cadb5bd9a3ad0b Author: Christian Brabandt <cb@256bit.org> Date: Sat Feb 10 13:50:54 2024 +0100 patch 9.1.0095: tests: test_restricted() fails Problem: tests: test_restricted() fails (after: v9.1.0091) Solution: Add a space before the pipecmd and the actual Vim command to run Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 10 Feb 2024 14:00:02 +0100
parents 752da4c70ab4
children
line wrap: on
line source

#!/usr/bin/env sh
pushd /etc/apt/preferences.d/
cat > nosnap.pref <<EOF
# To prevent repository packages from triggering the installation of snap,
# this file forbids snapd from being installed by APT.

Package: snapd
Pin: release a=*
Pin-Priority: -10
EOF
popd
snap remove --purge $(snap list | awk '!/^Name|^core/ {print $1}')
apt-get purge -y snapd