From 3831aa67916bffb0ac30ec07b0034c99178756a5 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Tue, 17 Nov 2015 17:56:38 +0100 Subject: [PATCH] Remove upgrade maintainer scripts from before wheezy. --- debian/changelog | 1 + debian/cmake-doc.postinst | 17 ----------------- debian/cmake.maintscript | 1 - debian/cmake.prerm | 23 ----------------------- 4 files changed, 1 insertion(+), 41 deletions(-) delete mode 100644 debian/cmake-doc.postinst delete mode 100644 debian/cmake.prerm diff --git a/debian/changelog b/debian/changelog index 3b5edac4f..cf5d5c256 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,7 @@ cmake (3.4.0-1) UNRELEASED; urgency=medium - FindPython_Add_versions_3.5_and_3.6.patch * Point watch file to the https URL. * Stop hardcoding the major version in cmake-data.install. + * Remove upgrade maintainer scripts from before wheezy. -- Felix Geyer Tue, 17 Nov 2015 17:29:12 +0100 diff --git a/debian/cmake-doc.postinst b/debian/cmake-doc.postinst deleted file mode 100644 index 2734aab9c..000000000 --- a/debian/cmake-doc.postinst +++ /dev/null @@ -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# diff --git a/debian/cmake.maintscript b/debian/cmake.maintscript index 6d059e6a5..7a88708f0 100644 --- a/debian/cmake.maintscript +++ b/debian/cmake.maintscript @@ -1,5 +1,4 @@ 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/cpack 3.2.2-3~ rm_conffile /etc/bash_completion.d/ctest 3.2.2-3~ diff --git a/debian/cmake.prerm b/debian/cmake.prerm deleted file mode 100644 index b4f36097d..000000000 --- a/debian/cmake.prerm +++ /dev/null @@ -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 <