~ubuntu-branches/debian/squeeze/aptitude/squeeze

« back to all changes in this revision

Viewing changes to debian/postrm

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Burrows
  • Date: 2007-03-13 20:49:58 UTC
  • Revision ID: james.westby@ubuntu.com-20070313204958-l7040344gthwxlvj
Tags: 0.4.4-4
In addition to the bugfix for ssprintf, the last release included
a new test case to ensure that the bug did not recur.  As it turned
out, this test case revealed that both the old and the new code
were buggy on amd64!  vssnprintf now handles its variable argument
list properly, using va_copy in case it has to access the list a
second time. (Closes: #414617)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# postrm script for #PACKAGE#
 
3
#
 
4
# see: dh_installdeb(1)
 
5
 
 
6
set -e
 
7
 
 
8
# summary of how this script can be called:
 
9
#        * <postrm> `remove'
 
10
#        * <postrm> `purge'
 
11
#        * <old-postrm> `upgrade' <new-version>
 
12
#        * <new-postrm> `failed-upgrade' <old-version>
 
13
#        * <new-postrm> `abort-install'
 
14
#        * <new-postrm> `abort-install' <old-version>
 
15
#        * <new-postrm> `abort-upgrade' <old-version>
 
16
#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
 
17
# for details, see /usr/doc/packaging-manual/
 
18
 
 
19
case "$1" in
 
20
       remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
21
 
 
22
        ;;
 
23
      purge)
 
24
        # Clear out /var/lib/aptitude
 
25
        rm -fr /var/lib/aptitude
 
26
        # Clear out the log
 
27
        rm -f /var/log/aptitude /var/log/aptitude.[0-9].gz
 
28
        ;;
 
29
 
 
30
    *)
 
31
        echo "postrm called with unknown argument \`$1'" >&2
 
32
        exit 0
 
33
 
 
34
esac
 
35
 
 
36
# dh_installdeb will replace this with shell code automatically
 
37
# generated by other debhelper scripts.
 
38
 
 
39
#DEBHELPER#
 
40
 
 
41