From a3328de25baad87a43690d35335a917b0e763d39 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 26 Apr 2011 21:54:07 +0200 Subject: [PATCH] Remove diversion of init-functions on downgrade --- debian/changelog | 7 +++++++ debian/systemd.postrm | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 0ffe2789..8683aee3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +systemd (25-2) experimental; urgency=low + + * Handle downgrades more gracefully by removing diversion of + /lib/lsb/init-functions on downgrades to << 25-1. + + -- + systemd (25-1) experimental; urgency=low * New upstream release, target experimental due to initscripts diff --git a/debian/systemd.postrm b/debian/systemd.postrm index 0565e8c0..b38a9db5 100644 --- a/debian/systemd.postrm +++ b/debian/systemd.postrm @@ -2,7 +2,7 @@ set -e -if [ "$1" = remove ]; then +if [ "$1" = remove ] || [ "$1" = upgrade ] && dpkg --compare-versions "$2" lt 25-1; then dpkg-divert --remove --package systemd --rename \ --divert /lib/lsb/init-functions.systemd /lib/lsb/init-functions fi -- 2.39.5