parent
8eccd4586e
commit
3831aa6791
@ -1,17 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
pkgname=`basename "$0" .postinst`
|
|
||||||
docdir="/usr/share/doc/$pkgname"
|
|
||||||
|
|
||||||
# Manually create /usr/share/doc/$pkgname symlink on upgrades (see #404850)
|
|
||||||
if [ "$1" = "configure" ] && [ -n "$2" ] && \
|
|
||||||
[ ! -L "$docdir" ] && [ -d "$docdir" ] && \
|
|
||||||
dpkg --compare-versions "$2" lt "2.8.3-3";
|
|
||||||
then
|
|
||||||
rmdir "$docdir"
|
|
||||||
ln -s "cmake-data" "$docdir"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
@ -1,5 +1,4 @@
|
|||||||
symlink_to_dir /usr/share/doc/cmake /usr/share/doc/cmake-data 2.8.12.2-2~
|
symlink_to_dir /usr/share/doc/cmake /usr/share/doc/cmake-data 2.8.12.2-2~
|
||||||
rm_conffile /etc/emacs/site-start.d/50cmake.el 2.8.9~rc3-1~
|
|
||||||
rm_conffile /etc/bash_completion.d/cmake 3.2.2-3~
|
rm_conffile /etc/bash_completion.d/cmake 3.2.2-3~
|
||||||
rm_conffile /etc/bash_completion.d/cpack 3.2.2-3~
|
rm_conffile /etc/bash_completion.d/cpack 3.2.2-3~
|
||||||
rm_conffile /etc/bash_completion.d/ctest 3.2.2-3~
|
rm_conffile /etc/bash_completion.d/ctest 3.2.2-3~
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if [ "$1" = "failed-upgrade" ] && dpkg --compare-versions "$2" le 2.6.2-1; then
|
|
||||||
# It is very likely that old-prerm failed due to emacsen-common being
|
|
||||||
# unconfigured at this stage. The error is harmless and cannot be avoided
|
|
||||||
# in a sane way.
|
|
||||||
# ERROR: emacsen-common being used before being configured.
|
|
||||||
# ERROR: This is likely a bug in the cmake package, which needs to
|
|
||||||
# ERROR: add one of the appropriate dependencies.
|
|
||||||
# ERROR: See /usr/share/doc/emacsen-common/debian-emacs-policy.gz
|
|
||||||
# ERROR: for details
|
|
||||||
#
|
|
||||||
# Therefore tell the user to ignore the error and exit gracefully.
|
|
||||||
cat >&2 <<END
|
|
||||||
NOTE: The emacsen-common error above is harmless and can be safely ignored.
|
|
||||||
NOTE: Upgrade will continue as usual.
|
|
||||||
END
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
#DEBHELPER#
|
|
Loading…
Reference in new issue