use remove_conffile_commit as used in x11-common.postinst.in (sorry, was wrong when suggested postrm.in), add a new rule after the current one with correct versions. Something like this:
if dpkg --compare-versions "$2" lt-nl "1:7.4~5ubuntu16"; then
remove_conffile_commit "/etc/X11/Xsession.d/60x11-localhost"
fi
use remove_ conffile_ commit as used in x11-common. postinst. in (sorry, was wrong when suggested postrm.in), add a new rule after the current one with correct versions. Something like this:
if dpkg --compare-versions "$2" lt-nl "1:7.4~5ubuntu16"; then conffile_ commit "/etc/X11/ Xsession. d/60x11- localhost"
remove_
fi