From 7c92c5fcfb5653f63243842299e413672653d1ad Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Feb 2013 00:08:16 -0800 Subject: Fri Feb 8 00:08:16 PST 2013 --- community/cinnamon/cinnamon.install | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) (limited to 'community/cinnamon/cinnamon.install') diff --git a/community/cinnamon/cinnamon.install b/community/cinnamon/cinnamon.install index 0f1197226..901fd95c9 100644 --- a/community/cinnamon/cinnamon.install +++ b/community/cinnamon/cinnamon.install @@ -1,19 +1,19 @@ post_install() { glib-compile-schemas usr/share/glib-2.0/schemas - - if [[ ! -f '/usr/lib/libgnome-desktop-3.so.2' ]];then - - if [[ $(uname -m) == 'i686' ]];then - ln -s /usr/lib/libgnome-desktop-3.so /usr/lib/libgnome-desktop-3.so.2 - fi - - fi } pre_upgrade() { if [ -f /usr/share/gconf/schemas/cinnamon.schemas ]; then gconfpkg --uninstall cinnamon fi + + if [ "$(vercmp 1.6.7-6 "$2")" -eq 1 ]; then + if [[ -h '/usr/lib/libgnome-desktop-3.so.2' ]]; then + if [[ $(uname -m) == 'i686' ]]; then + unlink /usr/lib/libgnome-desktop-3.so.2 + fi + fi + fi } post_upgrade() { @@ -25,13 +25,5 @@ pre_remove() { } post_remove() { - glib-compile-schemas usr/share/glib-2.0/schemas - - if [[ ! -f '/usr/lib/libgnome-desktop-3.so.2' ]];then - - if [[ $(uname -m) == 'i686' ]];then - unlink /usr/lib/libgnome-desktop-3.so.2 - fi - - fi + post_install } -- cgit v1.2.3-54-g00ecf