Makes postinst script faster in most cases.
[speedometer] / debian / postinst
index 91f3d32..137631a 100755 (executable)
@@ -1,9 +1,9 @@
 #! /bin/sh
 
-# do this in the background
-gtk-update-icon-cache -f /usr/share/icons/hicolor &
+oldversion="$2"
+if [ -z "$oldversion" ]
+       gtk-update-icon-cache -f /usr/share/icons/hicolor &
+       maemo-select-menu-location speedometer.desktop
+fi
 
-# promts the user if this is a fresh install
-maemo-select-menu-location speedometer.desktop
-
-exit 0
+exit 0