mpd,mpd-alsa : fix init script(start and stop were swaped in restart),bump all PR
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Sun, 18 Apr 2010 20:27:57 +0000 (22:27 +0200)
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Sun, 18 Apr 2010 20:47:09 +0000 (22:47 +0200)
In the mpd init script,in the restart case,it first started then stopped.
Thanks to jconnolly for having noticed that it didn't restart at all

recipes/musicpd/mpd-alsa_0.11.5.bb
recipes/musicpd/mpd-alsa_0.14.2.bb
recipes/musicpd/mpd/mpd.init
recipes/musicpd/mpd_0.14.2.bb
recipes/musicpd/mpd_0.15.bb

index be02984..47a6ada 100644 (file)
@@ -5,7 +5,7 @@ LICENSE = "GPLv2"
 DEPENDS = "libvorbis libogg libao-alsa zlib libmikmod flac audiofile virtual/libiconv \
            ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad libid3tag', d)}"
 RDEPENDS = "libao-alsa"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/musicpd/mpd-${PV}.tar.gz \
            file://mpd/save-volume-state.patch;patch=1 file://mpd/mpd.init"
index adbf430..c9c71bb 100644 (file)
@@ -10,7 +10,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/musicpd/mpd-${PV}.tar.bz2 \
 file://mpd/mpd.conf \
 file://mpd/mpd.init"
 
-PR = "r3"
+PR = "r4"
 
 S = "${WORKDIR}/mpd-${PV}"
 inherit autotools update-rc.d
index 98a75d0..2820ce7 100644 (file)
@@ -19,9 +19,9 @@ case "$1" in
     ;;
   restart|force-reload)
     echo -n "Restarting music player daemon: mpd"
-    start-stop-daemon --start --quiet --exec /usr/bin/mpd
-    sleep 2
     start-stop-daemon --stop --quiet --exec /usr/bin/mpd
+    sleep 2
+    start-stop-daemon --start --quiet --exec /usr/bin/mpd
     echo "."
     ;;
   *)
index 4f84dc8..f4ba6e5 100644 (file)
@@ -9,7 +9,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/musicpd/mpd-${PV}.tar.bz2 \
           file://mpd/mpd.conf \
            file://mpd/mpd.init"
 
-PR = "r4"
+PR = "r5"
 
 inherit autotools update-rc.d
 INITSCRIPT_NAME = "mpd"
index a10be21..0f6295d 100644 (file)
@@ -12,6 +12,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/musicpd/mpd-${PV}.tar.bz2 \
 inherit autotools update-rc.d
 INITSCRIPT_NAME = "mpd"
 
+PR = "r1"
+
 # Setting --enable-mpd-{mad,id3tag} causes local caches of the libraries to
 # be built, instead we use the OE built versions which should be installed
 # in staging - remove the --with and replace with --enable to use the local