Bug#814576: gosa-desktop: Uninstallable due to missing /etc/gosa/

Andreas Beckmann anbe at debian.org
Mon Feb 15 00:01:02 UTC 2016


On 2016-02-14 23:08, Petter Reinholdtsen wrote:
> I am not aware of any reasons to prefer one over the other.  Why do you
> suggest to ship the empty directory as part of the package?  I do not
> have anything against the suggestion, just curious about your reasons
> to avoid creating it in the postinst.

If dpkg creates the directory, dpkg tracks ownership and takes care of
the removal. And we can blame dpkg if it doesn't cleanup properly.
Otherwise your postrm is responsible for removal ... oh wait,
gosa-desktop is probably not the only package using /etc/gosa, so doing
this right gets hard. (And you might get a piuparts bug about "leaving
an empty directory after purge" next. Or one about "deleting a directory
owned by another package".)


Andreas

PS: right now dpkg doesn't properly remove some empty directories after
package removal, but that's only one package that needs to be fixed :-)



More information about the Debian-edu-pkg-team mailing list