[Piuparts-commits] [piuparts] 01/01: custom-scripts: work around issues in gnome, kde, mate, sucrose & razorqt desktops which install systemd-sysv which is not straight forward to remove again

Holger Levsen holger at moszumanska.debian.org
Thu May 29 23:22:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit 1d59fd9a56a277f3ff56cd8aef208a55bfcdba00
Author: Holger Levsen <holger at layer-acht.org>
Date:   Fri May 30 01:21:30 2014 +0200

    custom-scripts: work around issues in gnome, kde, mate, sucrose & razorqt desktops which install systemd-sysv which is not straight forward to remove again
---
 custom-scripts/scripts/post_purge_exceptions | 5 +++++
 custom-scripts/scripts/pre_remove_exceptions | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/custom-scripts/scripts/post_purge_exceptions b/custom-scripts/scripts/post_purge_exceptions
index 43e97c6..7a9e8b5 100755
--- a/custom-scripts/scripts/post_purge_exceptions
+++ b/custom-scripts/scripts/post_purge_exceptions
@@ -45,4 +45,9 @@ case ${PIUPARTS_OBJECTS%%=*} in
 				;;
 		esac
 		;;
+	gdm3|gnome-session|gnome-shell*|razorqt|sucrose-0.96|mate-desktop-environment-core|task-kde-desktop)
+		# see pre_remove_exceptions for why this is needed
+		log_debug
+		dpkg --purge systemd-shim
+		;;
 esac
diff --git a/custom-scripts/scripts/pre_remove_exceptions b/custom-scripts/scripts/pre_remove_exceptions
index aaf71b2..99e5477 100755
--- a/custom-scripts/scripts/pre_remove_exceptions
+++ b/custom-scripts/scripts/pre_remove_exceptions
@@ -22,6 +22,12 @@ case ${PIUPARTS_OBJECTS%%=*} in
 		rm -f /usr/sbin/apt-listbugs
 		dpkg-divert --remove --rename /usr/sbin/apt-listbugs
 		;;
+	gdm3|gnome-session|gnome-shell*|razorqt|sucrose-0.96|mate-desktop-environment-core|task-kde-desktop)
+		# these packages cause installation of systemd-sysv which (currently) needs this help for removing it again
+		# also see post_purge_exceptions for further cleanup
+		log_debug
+		apt-get -y install sysvinit-core
+		;;
 esac
 
 # Allow removal of the kernel running on the host from the chroot.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list