Don't mess with Sury's pinning

This commit is contained in:
Alexandre Aubin 2020-12-24 15:38:39 +01:00
parent 6c75aa0074
commit 6419c2ac64

View file

@ -460,7 +460,8 @@ ynh_remove_extra_repo () {
name="${name:-$app}"
ynh_secure_remove "/etc/apt/sources.list.d/$name.list"
ynh_secure_remove "/etc/apt/preferences.d/$name"
# Sury pinning is managed by the regenconf in the core...
[[ "$name" == "extra_php_version" ]] || ynh_secure_remove "/etc/apt/preferences.d/$name"
ynh_secure_remove "/etc/apt/trusted.gpg.d/$name.gpg" > /dev/null
ynh_secure_remove "/etc/apt/trusted.gpg.d/$name.asc" > /dev/null
@ -548,6 +549,9 @@ ynh_pin_repo () {
append="tee"
fi
# Sury pinning is managed by the regenconf in the core...
[[ "$name" != "extra_php_version" ]] || return
mkdir --parents "/etc/apt/preferences.d"
echo "Package: $package
Pin: $pin