Fix compat issue in equivs helper

This commit is contained in:
Alexandre Aubin 2021-05-30 18:48:26 +02:00
parent e2a3a0bedf
commit cb129e2bf1

View file

@ -181,8 +181,9 @@ ynh_package_install_from_equivs () {
# Build and install the package
local TMPDIR=$(mktemp --directory)
# Force the compatibility level at 10, levels below are deprecated
echo 10 > /usr/share/equivs/template/debian/compat
# Make sure to delete the legacy compat file
# It's now handle somewhat magically through the control file
rm -f /usr/share/equivs/template/debian/compat
# Note that the cd executes into a sub shell
# Create a fake deb package with equivs-build and the given control file