Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > 59a92444c7d0f70b91035d02c73c4032 > scriptlet

vim-common-7.1-14mdv2008.1.x86_64.rpm

PREIN

/bin/sh
# This is needed since locales have been moved to /usr/share/locale
# thus enabling us to install only requested locales
# the problem is that vim look for anything in /usr/share/vim/lang
# So we've to symlink locales there
# But to prevent update faillure, we must first be sure a link
# creation won't fail because old directory is still there
if test -d /usr/share/vim/lang -a ! -L /usr/share/vim/lang
then rm -fr /usr/share/vim/lang
else rm -f /usr/share/vim/lang
fi