Re: how do I treat an un-owned leftover directory?

2014-06-27 Thread Dennis van Dok
On 26-06-14 23:21, Lars Wirzenius wrote: I think the following should work: * Include the /etc/grid-security/certificates directory in your .deb. * In postinst, add the symlinks. * In prerm, remove the symlinks. This way, the directory will be added and removed automatically by dpkg, and

how do I treat an un-owned leftover directory?

2014-06-26 Thread Dennis van Dok
Hi, my packages igtf-policy-bundle has piuparts errors[1]. I'm symlinking files to /etc/grid-security/certificates/ on installation, and everything but the directories themselves are removed on package removal. I guess I could remove these directories if they are completely empty after package

Re: how do I treat an un-owned leftover directory?

2014-06-26 Thread Ondřej Surý
If you do create those directories in {pre,post}inst, you should check if they are empty in {pre,post}rm and remove them after unlinking the stuff you have linked in. e.g. just cleanup after your package on purge Ondrej On Thu, Jun 26, 2014, at 14:45, Dennis van Dok wrote: Hi, my packages

Re: how do I treat an un-owned leftover directory?

2014-06-26 Thread Lars Wirzenius
On Thu, Jun 26, 2014 at 02:45:21PM +0200, Dennis van Dok wrote: I'm symlinking files to /etc/grid-security/certificates/ on installation, and everything but the directories themselves are removed on package removal. I guess I could remove these directories if they are completely empty after