I'm building some packages for a private repository using
equivs-build. The files are installing ok using
apt-get install but when I go to remove them they are trying to delete the whole folder structure they are installed to.
In the equivs file I have the line:
Files: <file to copy> /usr/local/sbin/
When I run
apt-get remove there are messages about
'.. directory /usr/local not empty so not removed.'
/usr/local/sbin folder is removed.
Is there some way to prevent this?