summaryrefslogtreecommitdiff
path: root/community/rawtherapee/rawtherapee.install
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-02 22:47:10 +0000
committerroot <root@rshg047.dnsready.net>2011-06-02 22:47:10 +0000
commit2d8c4c44185a682290ccde4d23132ae3acf01678 (patch)
treec23dfddada868c72eb548f8159b7fd0b1179e02c /community/rawtherapee/rawtherapee.install
parente7b9c9697e6a50c3b9e78941fa95ba11c716d238 (diff)
Thu Jun 2 22:47:10 UTC 2011
Diffstat (limited to 'community/rawtherapee/rawtherapee.install')
-rw-r--r--community/rawtherapee/rawtherapee.install27
1 files changed, 12 insertions, 15 deletions
diff --git a/community/rawtherapee/rawtherapee.install b/community/rawtherapee/rawtherapee.install
index ccf3323ae..6162b34dd 100644
--- a/community/rawtherapee/rawtherapee.install
+++ b/community/rawtherapee/rawtherapee.install
@@ -1,24 +1,21 @@
-post_upgrade() {
-
-if [ ${2%%_*} == "3.0a1" ]; then
- TMP=${2##*_}
- TMP=${TMP%%-*}
+post_install() {
+ echo "update desktop mime database..."
+ update-desktop-database -q
+ update-mime-database usr/share/mime 1>&2 > /dev/null
+}
- if [ $TMP -lt 316 ]; then
- echo "Profile extension has changed from .pp2 to .pp3"
- echo -e "since rawtherapee-3.0a1_54-1\n"
- echo "If you used rawtherapee-3.0a1_54-1 or any earlier 3.0 version"
- echo "you have to change the extension manually.\n"
- echo "NOTE: pp2 profiles from rawtherapee 2.4 and older"
- echo "are not compatible."
- fi
+post_upgrade() {
+ post_install $1
- if [ $TMP -lt 589 ]; then
+ if [ ${2%%_*} == "3.0a1" ]; then
echo "There were lots of changes to the behavior of the majority of tools."
echo "This may cause your files to look differently than before."
fi
-fi
+}
+post_remove() {
+ post_install $1
}
+
# vim:set ts=2 sw=2 et: