[Pkg-cmake-commits] [cmake] 07/10: Remove upgrade maintainer scripts from before wheezy.

Felix Geyer fgeyer at moszumanska.debian.org
Tue Nov 17 17:29:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

fgeyer pushed a commit to branch experimental
in repository cmake.

commit 3831aa67916bffb0ac30ec07b0034c99178756a5
Author: Felix Geyer <fgeyer at debian.org>
Date:   Tue Nov 17 17:56:38 2015 +0100

    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(-)

diff --git a/debian/changelog b/debian/changelog
index 3b5edac..cf5d5c2 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 <fgeyer at debian.org>  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 2734aab..0000000
--- 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 6d059e6..7a88708 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 b4f3609..0000000
--- 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 <<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#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cmake/cmake.git



More information about the Pkg-cmake-commits mailing list