view ci/remove_snap.sh @ 34844:810cfae88ac7 v9.1.0291

patch 9.1.0291: filetype: libreoffice config files are not recognized Commit: https://github.com/vim/vim/commit/73c89bcf79df280b8698f77374afabd9494dc741 Author: Wu, Zhenyu <wuzhenyu@ustc.edu> Date: Tue Apr 9 22:20:55 2024 +0200 patch 9.1.0291: filetype: libreoffice config files are not recognized Problem: filetype: libreoffice config files are not recognized Solution: Detect Libreoffice config fils as xml/dosini (Wu, Zhenyu) closes: #14453 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 09 Apr 2024 22:30:04 +0200
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