diff options
Diffstat (limited to 'community/rawtherapee/rawtherapee.install')
-rw-r--r-- | community/rawtherapee/rawtherapee.install | 27 |
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: |