????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.191 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/var/lib/dpkg/info_silent/ |
Upload File : |
#! /bin/sh
# postinst script for dictionaries-common
set -e
# Sourcing debconf confmodule
. /usr/share/debconf/confmodule
case "$1" in
configure)
# This will remove /usr/share/pspell/region-to-spelling.map diversion by
# dictionaries-common package and associated stuff if present
rm -f /var/cache/dictionaries-common/region-to-spelling.map
# This next handles a bug in some dpkg versions not removing
# the symlink properly when upgrading
if [ -L /usr/share/pspell/region-to-spelling.map ]; then
RTS_DEST=`readlink /usr/share/pspell/region-to-spelling.map`
if [ "$RTS_DEST" = "/var/cache/dictionaries-common/region-to-spelling.map" ]; then
rm -f /usr/share/pspell/region-to-spelling.map
fi
fi
# Removing the diversion if it still exists. trued just in case it does not,
# since grep returns error breaking postinst because of set -e otherwise.
DC_DIVERT=`dpkg-divert --list dictionaries-common | grep region-to-spelling.map` || true
if [ "$DC_DIVERT" ]; then
dpkg-divert --package dictionaries-common --remove --rename \
--divert /usr/share/pspell/region-to-spelling.map.orig \
/usr/share/pspell/region-to-spelling.map
fi
# We no longer create the /usr/dict symlink
# This will check for obsolete /etc/dictionary link
if [ -L /etc/dictionary ]; then
db_get dictionaries-common/old_wordlist_link
if [ "$RET" = "true" ]; then
rm /etc/dictionary
fi
fi
# Ensure that automatic generation of files is done, such that we always
# start with a sane environment.
update-dictcommon-aspell
update-dictcommon-hunspell
update-default-wordlist --triggered
# For ispell dictionaries do everything but setting symlinks.
# If autobuildhash is used source hashes may not have been created.
update-default-ispell --triggered --skip-symlinks
# Remove ancient /etc/openoffice/dictionary.lst if present
if [ -f "/etc/openoffice/dictionary.lst" ]; then
echo "Removing obsolete \"/etc/openoffice/dictionary.lst\"" >&2
rm -f "/etc/openoffice/dictionary.lst" "/etc/openoffice/dictionary.lst~" "/etc/openoffice/dictionary.lst.old"
rmdir --ignore-fail-on-non-empty "/etc/openoffice"
fi
# Remove obsolete jed startup file
if [ -f /etc/jed-init.d/50dictionaries-common.sl ] ; then
echo "Removing obsolete /etc/jed-init.d/50dictionaries-common.sl" >&2
rm -f /etc/jed-init.d/50dictionaries-common.sl
fi
# That made this dir not be removed by dpkg. Remove it if exists, is non
# empty, and jed-common is not installed
if [ -d /etc/jed-init.d ] && [ ! -e /etc/jed-init.d/00debian.sl ]; then
rmdir --ignore-fail-on-non-empty /etc/jed-init.d
fi
# ---------------- 8< ----------------------------------------------------
# Remove obsolete dictionaries-common.reconfiguring. This problem only
# lasted for two days and, so this should go away long before releasing lenny
if [ -f /var/cache/dictionaries-common/postinst.reconfiguring ] ; then
echo "Removing obsolete /var/cache/dictionaries-common/postinst.reconfiguring" >&2
rm -f /var/cache/dictionaries-common/postinst.reconfiguring
fi
# ---------------- 8< ----------------------------------------------------
# Remove obsolete aspell-equivs file
if [ -f /var/cache/dictionaries-common/emacsen-aspell-equivs.el ] ; then
echo "Removing obsolete /var/cache/dictionaries-common/emacsen-aspell-equivs.el" >&2
rm -f /var/cache/dictionaries-common/emacsen-aspell-equivs.el
fi
;;
triggered)
[ -z "$DICT_COMMON_DEBUG" ] || echo "Triggers list: \"$2\"" >&2
for trigger in $2; do
[ -z "$DICT_COMMON_DEBUG" ] || echo "Running trigger \"$trigger\"" >&2
case $trigger in
aspell-autobuildhash)
aspell-autobuildhash --triggered
;;
ispell-autobuildhash)
ispell-autobuildhash --triggered
;;
update-default-ispell)
update-default-ispell --triggered --rebuild
;;
update-default-wordlist)
update-default-wordlist --triggered --rebuild
;;
*)
echo "Unsupported trigger \"$trigger\"" >&2
esac
done
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac
# Automatically added by dh_installemacsen
if [ "$1" = "configure" ] && [ -e /var/lib/emacsen-common/state/package/installed/emacsen-common ]
then
/usr/lib/emacsen-common/emacs-package-install --postinst dictionaries-common
fi
# End automatically added section
exit 0
# Local Variables:
# sh-basic-offset: 2
# sh-indentation: 2
# End: