Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-release > by-pkgid > 936b4ed6ba3e5ec8b74c99354fe066df > scriptlet

mozilla-thunderbird-3.0.5-1mdv2010.1.x86_64.rpm

PREIN

/bin/sh
if [ $1 == 2 ]; then
  if [ -d /usr/lib64/thunderbird-3.0.5/dictionaries ]; then
    # Otherelse rpm can't switch this into a symlink :(
    rm -rf /usr/lib64/thunderbird-3.0.5/dictionaries
  fi
fi

POSTIN

/bin/sh
/usr/bin/update-desktop-database /usr/share/applications

/usr/share/rpm-helper/create-file mozilla-thunderbird $1 /usr/lib64/thunderbird-3.0.5/chrome/app-chrome.manifest root root 644 
/usr/share/rpm-helper/create-file mozilla-thunderbird $1 /usr/lib64/thunderbird-3.0.5/components/compreg.dat root root 644 
/usr/share/rpm-helper/create-file mozilla-thunderbird $1 /usr/lib64/thunderbird-3.0.5/components/xpti.dat root root 644 

if [ -f /usr/lib64/thunderbird-3.0.5/components/compreg.dat ]; then
    /bin/rm -f /usr/lib64/thunderbird-3.0.5/components/compreg.dat
fi

if [ -f /usr/lib64/thunderbird-3.0.5/components/xpti.dat ]; then
    /bin/rm -f /usr/lib64/thunderbird-3.0.5/components/xpti.dat
fi

mktemp="/bin/mktemp -d -q -p /tmp -t mozilla-thunderbird.XXXXXXXXXX"

TMPDIR= TB_TMPDIR=`$mktemp` && {
    HOME="$TB_TMPDIR" LD_LIBRARY_PATH="/usr/lib64/thunderbird-3.0.5" /usr/lib64/thunderbird-3.0.5/thunderbird-bin -nox -register
    test -d "$TB_TMPDIR" && /bin/rm -rf -- "$TB_TMPDIR"
}

if [ -x /usr/bin/gtk-update-icon-cache ]; then
 /usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor
fi

POSTUN

/bin/sh
/usr/bin/update-desktop-database /usr/share/applications
if [ "$1" = "0" -a -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor
fi


#===============================================================================