don't set up a local diversion
authorDennis Groenen <tj.groenen@gmail.com>
Mon, 26 Nov 2012 20:51:44 +0000 (21:51 +0100)
committerDennis Groenen <tj.groenen@gmail.com>
Mon, 26 Nov 2012 20:51:44 +0000 (21:51 +0100)
debian/busybox-power.postinst

index e2d7c5a..0dd43bc 100644 (file)
@@ -71,7 +71,10 @@ ROLLBACK_HARMATTAN() {
 INSTALL() {
     case $ENVIRONMENT in
       SDK|DIABLO|FREMANTLE)
-        /usr/sbin/dpkg-divert --local --divert $DISTBIN /bin/busybox
+        # Divert in postinst instead of preinst, we don't want to leave Maemo
+        # without /bin/busybox for a short period of time
+        /usr/sbin/dpkg-divert --package busybox-power --add \
+          --divert $DISTBIN /bin/busybox
         $EXECPWR cp -f $EXECPWR /bin/busybox
         ;;
       HARMATTAN)