updating icon cache only on first install
authorEugene Gagarin <mosfet07@ya.ru>
Sat, 28 Feb 2009 18:09:30 +0000 (21:09 +0300)
committerWall <wall@gmail.com>
Sat, 28 Feb 2009 18:36:21 +0000 (18:36 +0000)
debian/postinst

index 887ea06..29e1a27 100755 (executable)
@@ -6,6 +6,9 @@
 ## ----------------------------------------------------------------------
 set -e
 
-gtk-update-icon-cache -f /usr/share/icons/hicolor
+oldversion="$2"
+if [ -z "$oldversion" ]; then
+  gtk-update-icon-cache -f /usr/share/icons/hicolor
+fi
 
 exit 0