The following commit has been merged in the master branch: commit 2545f4a6e9315fc734f32f7dac5802af1efab776 Author: Andreas Tille <ti...@debian.org> Date: Mon May 20 09:46:59 2013 +0200
do not create preinst and postrm scripts any more because preinst is unneeded since Lenny and postrm was only introduced for completeness but never used diff --git a/debian/changelog b/debian/changelog index 9b1f854..d22d2b6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,11 @@ -blends (0.6.16.3) UNRELEASED; urgency=low +blends (0.6.16.3) unstable; urgency=low * devtools/rules: Better way to obtain version string + * do not create preinst and postrm scripts any more because + preinst is unneeded since Lenny and postrm was only introduced + for completeness but never used + Closes: #708820, #708879 + * templates/{preinst,postrm}: Removed because unneeded -- Andreas Tille <ti...@debian.org> Sun, 31 Mar 2013 19:40:23 +0200 diff --git a/devtools/blend-install-helper b/devtools/blend-install-helper index 21f951d..88b85b6 100755 --- a/devtools/blend-install-helper +++ b/devtools/blend-install-helper @@ -77,7 +77,7 @@ for pkg in $TASKLIST ; do # post{inst/rm} template are appended if some extra scripts are provided or just created # an extra postinst has to be saved (*.stub) and restored by the clean target in # debian/rules - for prepost in preinst postinst prerm postrm ; do + for prepost in postinst prerm ; do [ -s debian/"$blend"-"$pkg".${prepost}.stub ] && cp debian/"$blend"-"$pkg".${prepost}.stub debian/"$blend"-"$pkg".${prepost} if [ -s /usr/share/blends/templates/${prepost} ] ; then sed -e "s/#BLEND#/${blend}/g" \ diff --git a/templates/postrm b/templates/postrm deleted file mode 100755 index e85910c..0000000 --- a/templates/postrm +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -set -e - -# This is the default postinst file from the blends-dev package which is used -# in all meta packages. If there is a certain need to provide extra -# postinst files for some meta packages this template will be appended. Thus -# it will be checked whether debconf was just initialized. -# -# You should not insert the _DEBHELPER_ template in the special postscript -# file because it is in the end of this template anyway. - -# summary of how this script can be called: -# * <postrm> `remove' -# * <postrm> `purge' -# * <old-postrm> `upgrade' <new-version> -# * <new-postrm> `failed-upgrade' <old-version> -# * <new-postrm> `abort-install' -# * <new-postrm> `abort-install' <old-version> -# * <new-postrm> `abort-upgrade' <old-version> -# * <disappearer's-postrm> `disappear' <overwriter> -# <overwriter-version> -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - -case "$1" in - purge|remove|upgrade|abort-install|abort-upgrade|disappear) - ;; - - failed-upgrade) - # There is basically nothing to do - just care for a clean upgrade - echo "Warning: postrm from version $2 of package #PKG# failed." - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -#DEBHELPER# - -exit 0 diff --git a/templates/preinst b/templates/preinst deleted file mode 100755 index a450a8e..0000000 --- a/templates/preinst +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -set -e - -# This is the default postinst file from the blends-dev package which is used -# in all meta packages. If there is a certain need to provide extra -# postinst files for some meta packages this template will be appended. Thus -# it will be checked whether debconf was just initialized. -# -# You should not insert the _DEBHELPER_ template in the special postscript -# file because it is in the end of this template anyway. - -# summary of how this script can be called: -# * <new-preinst> `install' -# * <new-preinst> `install' <old-version> -# * <new-preinst> `upgrade' <old-version> -# * <old-preinst> `abort-upgrade' <new-version> -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - install|upgrade) - ;; - - abort-upgrade) - ;; - - *) - echo "preinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 -- Git repository for blends code _______________________________________________ Blends-commit mailing list Blends-commit@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit