> From: Andreas Beckmann [mailto:a...@debian.org]
> [Snip] 
> 
> during a test with piuparts I noticed your package left unowned
> directories on the system after purge, which is a violation of
> policy 6.8:
> 
> [Snip]
> 
> The maintainer scripts create (and later remove) a file in that
> directory. Manual directory removal may be not appropriate as this
> directory is shared between several packages.
> 
> If the package would ship this as an empty directory, dpkg would take
> care of the creation and removal (if it's empty).

Understood. Following patch fixes the problem (dpkg -i / dpkg --purge). Is
this also OK with "dpkg-statoverride" override stuff that was already
present? Is the solution via "debian/dirs" the best way to go?

--- a/source/debian/postinst
+++ b/source/debian/postinst
@@ -27,7 +27,6 @@ case "$1" in
       chown "root.${analysisGroup}" -- /etc/aminer
       chmod 00750 -- /etc/aminer
     fi
-    mkdir -p -- /var/lib/aminer
     if ! dpkg-statoverride --list /var/lib/aminer > /dev/null; then
       chmod 00700 -- /var/lib/aminer
       chown "${analysisUser}.${analysisGroup}" -- /var/lib/aminer

--- b/source/debian/dirs   2016-07-26 03:52:13.699089921 +0000
+++ b/source/debian/dirs  2016-07-26 11:31:01.548994982 +0000
@@ -0,0 +1 @@
+var/lib/aminer

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to