[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#708879: should delete boilerplate-only maintainer scripts



package: blends-dev
version: 0.6.16.2
affects: debian-edu

Hi,

blends-dev creates boilerplate maintainer scripts, which then lead to lintian 
warnings for the packages using blends-dev, ie debian-edu 1.707 has the 
following lintian warnings:

debian-edu changes binary: bad-distribution-in-changes-file wheezy-test
debian-edu source binary: unknown-field-in-dsc comment
education-thin-client binary: maintainer-script-empty postrm
education-thin-client binary: maintainer-script-empty preinst
education-standalone binary: maintainer-script-empty postrm
education-standalone binary: maintainer-script-empty preinst
education-desktop-gnome binary: maintainer-script-empty postrm
education-desktop-gnome binary: maintainer-script-empty preinst
education-networked binary: maintainer-script-empty postrm
education-networked binary: maintainer-script-empty preinst
education-development binary: maintainer-script-empty postrm
education-development binary: maintainer-script-empty preinst
education-thin-client-server binary: maintainer-script-empty postrm
education-thin-client-server binary: maintainer-script-empty preinst
education-mathematics binary: maintainer-script-empty postrm
education-mathematics binary: maintainer-script-empty preinst
education-main-server binary: maintainer-script-empty postrm
education-main-server binary: maintainer-script-empty preinst
education-graphics binary: maintainer-script-empty postrm
education-graphics binary: maintainer-script-empty preinst
education-desktop-kde binary: maintainer-script-empty postrm
education-desktop-kde binary: maintainer-script-empty preinst
education-misc binary: maintainer-script-empty postrm
education-misc binary: maintainer-script-empty preinst
education-common binary: maintainer-script-empty postrm
education-common binary: maintainer-script-empty preinst
education-physics binary: maintainer-script-empty postrm
education-physics binary: maintainer-script-empty preinst
education-laptop binary: maintainer-script-empty postrm
education-laptop binary: maintainer-script-empty preinst
education-astronomy binary: maintainer-script-empty postrm
education-astronomy binary: maintainer-script-empty preinst
education-language binary: maintainer-script-empty postrm
education-language binary: maintainer-script-empty preinst
education-chemistry binary: maintainer-script-empty postrm
education-chemistry binary: maintainer-script-empty preinst
education-desktop-lxde binary: maintainer-script-empty postrm
education-desktop-lxde binary: maintainer-script-empty preinst
education-electronics binary: maintainer-script-empty postrm
education-electronics binary: maintainer-script-empty preinst
education-workstation binary: maintainer-script-empty postrm
education-workstation binary: maintainer-script-empty preinst
education-services binary: maintainer-script-empty postrm
education-services binary: maintainer-script-empty preinst
education-desktop-sugar binary: maintainer-script-empty postrm
education-desktop-sugar binary: maintainer-script-empty preinst
education-logic-games binary: maintainer-script-empty postrm
education-logic-games binary: maintainer-script-empty preinst
education-desktop-other binary: maintainer-script-empty postrm
education-desktop-other binary: maintainer-script-empty preinst
education-music binary: maintainer-script-empty postrm
education-music binary: maintainer-script-empty preinst
education-geography binary: maintainer-script-empty postrm
education-geography binary: maintainer-script-empty preinst
2 tags overridden (2 errors)

the "empty" maintainers scripts look like this:

$ cat education-workstation.postrm 
#!/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 education-workstation 
failed."
    ;;

    *)
        echo "postrm called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0

$ cat education-workstation.preinst 
#!/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


I'll add lintian overrides now but I wish I wouldn't have to.


cheers,
	Holger

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: