[SCM] rtkit/master: Stop the rktid daemon when removing the package.
fsateler at users.alioth.debian.org
fsateler at users.alioth.debian.org
Tue Feb 21 03:01:06 UTC 2017
The following commit has been merged in the master branch:
commit be347d046f96bbc078dc983806d79be2a6a6230f
Author: Felipe Sateler <fsateler at debian.org>
Date: Sun Oct 9 16:28:22 2016 -0300
Stop the rktid daemon when removing the package.
Closes: #813149
diff --git a/debian/rtkit.prerm b/debian/rtkit.prerm
new file mode 100644
index 0000000..e8d7c02
--- /dev/null
+++ b/debian/rtkit.prerm
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "remove" ] ; then
+ # don't prevent uninstallation if stopping fails (eg, no dbus daemon)
+ rtkitctl --exit 2>/dev/null || true
+fi
+
+exit 0
--
rtkit packaging
More information about the pkg-multimedia-commits
mailing list