annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
34246
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 #!/usr/bin/env sh
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2 pushd /etc/apt/preferences.d/
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 cat > nosnap.pref <<EOF
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 # To prevent repository packages from triggering the installation of snap,
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 # this file forbids snapd from being installed by APT.
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 Package: snapd
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 Pin: release a=*
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 Pin-Priority: -10
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 EOF
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
11 popd
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
12 snap remove --purge $(snap list | awk '!/^Name|^core/ {print $1}')
752da4c70ab4 CI: get rid of snap and speed up CI (#13938)
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
13 apt-get purge -y snapd