Revert "Don't use killall to kill off browser-switchboards in postrm"
authorSteven Luo <steven+maemo@steven676.net>
Fri, 18 Dec 2009 12:55:27 +0000 (04:55 -0800)
committerSteven Luo <steven+maemo@steven676.net>
Fri, 18 Dec 2009 12:55:27 +0000 (04:55 -0800)
This reverts commit 414af7e1dcefb4a5eb39f185c24d24c9115757d3.

This had the nasty effect of killing dpkg on an upgrade.  Will fix
differently.

debian/postrm

index e2c989c..86d2b28 100644 (file)
@@ -19,12 +19,14 @@ set -e
 # the debian-policy package
 
 kill_old_proxies() {
 # the debian-policy package
 
 kill_old_proxies() {
-       # Kill off browser-switchboards
+       # Kill off old python browser-switchboards, if any
        # This would be so much nicer with pgrep/pkill ...
        # This would be so much nicer with pgrep/pkill ...
-       proxy_pids=`busybox ps | fgrep browser-switchboard | fgrep -v grep | fgrep -v browser-switchboard.postrm | awk '{ print $1 }'`
+       proxy_pids=`busybox ps | fgrep "python /usr/bin/browser-switchboard" | fgrep -v grep | awk '{ print $1 }'`
        if [ ! -z "$proxy_pids" ]; then
                kill $proxy_pids
        fi
        if [ ! -z "$proxy_pids" ]; then
                kill $proxy_pids
        fi
+       # Kill off C browser-switchboards
+       killall browser-switchboard
 }
 
 case "$1" in
 }
 
 case "$1" in