[Pkg-mpd-commits] [pkg-mpd] 01/01: Do not mess with runlevels if START_MPD is already gone (closes: #744174 #742833)

Florian Schlichting fsfs at moszumanska.debian.org
Fri Apr 11 12:52:20 UTC 2014


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

fsfs pushed a commit to branch master
in repository pkg-mpd.

commit f7f91a891daddf29e6f4adf70287568b7c6124c2
Author: Florian Schlichting <fsfs at debian.org>
Date:   Fri Apr 11 12:04:44 2014 +0200

    Do not mess with runlevels if START_MPD is already gone (closes: #744174 #742833)
---
 debian/changelog   | 7 +++++++
 debian/mpd.preinst | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 4ec5003..57e2c71 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+mpd (0.18.10-2) unstable; urgency=medium
+
+  * Do not mess with runlevels if START_MPD is already gone
+    (closes: #744174 #742833)
+
+ -- Florian Schlichting <fsfs at debian.org>  Fri, 11 Apr 2014 12:04:57 +0200
+
 mpd (0.18.10-1) unstable; urgency=medium
 
   * Import Upstream version 0.18.10
diff --git a/debian/mpd.preinst b/debian/mpd.preinst
index 44ecd79..ee1d0c9 100644
--- a/debian/mpd.preinst
+++ b/debian/mpd.preinst
@@ -9,7 +9,7 @@ VERSION="$2"
 # transition away from START_MPD=false (obsolete after jessie)
 if [ "$ACTION" = "upgrade" ]; then
     [ -r /etc/default/mpd ] && . /etc/default/mpd
-    if [ "x$START_MPD" != "xtrue" ]; then
+    if grep -q START_MPD /etc/default/mpd && [ "x$START_MPD" != "xtrue" ]; then
         update-rc.d mpd disable > /dev/null
         # attempt to reset /etc/default/mpd to unmodified state
         sed -i -e's/^START_MPD=.*$/START_MPD=true/' /etc/default/mpd

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



More information about the Pkg-mpd-commits mailing list