projects
/
speedometer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99cddce
)
Makes postinst script faster in most cases.
author
wellu
<wellu@wellu.org>
Wed, 5 Nov 2008 21:29:25 +0000
(21:29 +0000)
committer
wellu
<wellu@wellu.org>
Wed, 5 Nov 2008 21:29:25 +0000
(21:29 +0000)
git-svn-id: file:///svnroot/speedometer/trunk@60
df364472
-da61-43ef-8a67-
511c89aa921b
debian/postinst
patch
|
blob
|
history
diff --git
a/debian/postinst
b/debian/postinst
index
91f3d32
..
137631a
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-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