diff options
author | root <root@rshg054.dnsready.net> | 2013-02-08 00:08:16 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-02-08 00:08:16 -0800 |
commit | 7c92c5fcfb5653f63243842299e413672653d1ad (patch) | |
tree | 3487915cdf6e673c8a6dccfbd2a526e341550c87 /community/cinnamon/cinnamon.install | |
parent | 8e5a0a990a12a59cadb687cae22a1960fce1660b (diff) |
Fri Feb 8 00:08:16 PST 2013
Diffstat (limited to 'community/cinnamon/cinnamon.install')
-rw-r--r-- | community/cinnamon/cinnamon.install | 26 |
1 files changed, 9 insertions, 17 deletions
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 } |