diff options
author | Michael Stapelberg <stapelberg@debian.org> | 2014-02-17 20:30:58 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2014-02-17 20:32:59 +0100 |
commit | 84217bc0b8beb60e082d6f836c4f6dc2e8d1fa28 (patch) | |
tree | 37b213cea33133752ce004ed3402d0b3d06571b6 | |
parent | 13482205b92e0a755c1d08bed78538a59520eaa7 (diff) | |
download | init-system-helpers-debian/1.16.tar.gz |
don’t delete /etc/systemd/, only the hierarchy below it (Thanks Andreas Beckmann)debian/1.16
This is necessary since we now ship the /etc/systemd directory, so we
should not delete it.
-rw-r--r-- | debian/changelog | 8 | ||||
-rwxr-xr-x | script/deb-systemd-helper | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog index 494862b..9859f01 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +init-system-helpers (1.16) unstable; urgency=low + + * Don’t delete /etc/systemd/, only the hierarchy below /etc/systemd/system/. + This is necessary to fix piuparts warnings since we ship + /etc/systemd/system since i-s-h 1.15 (Thanks Andreas Beckmann). + + -- Michael Stapelberg <stapelberg@debian.org> Mon, 17 Feb 2014 20:32:54 +0100 + init-system-helpers (1.15) unstable; urgency=low * ship /etc/systemd/system to avoid piuparts warnings diff --git a/script/deb-systemd-helper b/script/deb-systemd-helper index 9149d18..f6b0fe7 100755 --- a/script/deb-systemd-helper +++ b/script/deb-systemd-helper @@ -496,10 +496,10 @@ for my $scriptname (@ARGV) { # subdirectories. Necessary to cleanly pass a piuparts run. rmdir_if_empty('/var/lib/systemd/deb-systemd-helper-enabled'); - # Same with /etc/systemd, where we create symlinks. If systemd is not - # installed (and no other package shipping service files), this would - # make piuparts fail, too. - rmdir_if_empty('/etc/systemd'); + # Same with directories below /etc/systemd, where we create symlinks. + # If systemd is not installed (and no other package shipping service + # files), this would make piuparts fail, too. + rmdir_if_empty($_) for (grep { -d } </etc/systemd/system/*>); } if ($action eq 'enable') { |