[Piuparts-devel] /etc/systemd/system/
Andreas Beckmann
anbe at debian.org
Sun Feb 16 01:35:12 UTC 2014
On 2014-02-07 20:48, Michael Stapelberg wrote:
>> Right. And lintian won't complain about empty directories in /etc afaik.
> Thanks. I uploaded 1.15 which should address this issue.
This has solved the leftover directories, but introduced a little
problem for e.g. rsyslog. There deb-systemd-helper manages to rmdir
/etc/systemd, which of course causes a new error if init-system-helpers
stays installed ... :-)
I think this could be fixed like this (untested):
- rmdir_if_empty('/etc/systemd');
+ rmdir_if_empty($_) for (grep { -d } </etc/systemd/system/*>);
(and the comments need adjustment ...
e.g. "hierarchy below /etc/systemd/system/")
Andreas
More information about the Piuparts-devel
mailing list