]> git.donarmstrong.com Git - debbugs.git/blob - debian/postinst
* temporarily disable the non-debhelper postinsts for now
[debbugs.git] / debian / postinst
1 #!/bin/sh -e
2
3 # Temporarily disable the postinst for now
4 # if [ "$1" = "configure" ]; then
5 #   /usr/sbin/debbugsconfig
6 #   if dpkg --compare-versions "$2" lt 2.4; then
7 #     spool=`perl -e 'require "/etc/debbugs/config"; print $gSpoolDir;'`
8 #     if [ -d "$spool/db" ]; then
9 #       if [ -d "$spool/db-h" ]; then
10 #         echo "Cannot migrate bug database to hashed format, because" >&2
11 #         echo "$spool/db-h already exists." >&2
12 #         echo "Rectify the situation and run the following command by hand:" >&2
13 #         echo "  /usr/sbin/debbugs-dbhash \"$spool/db\" \"$spool/db-h\"" >&2
14 #       else
15 #         echo "Migrating bug database to hashed format." >&2
16 #         /usr/sbin/debbugs-dbhash "$spool/db" "$spool/db-h"
17 #         echo "You can remove bug logs from $spool/db" >&2
18 #         echo "after ensuring that the new database works." >&2
19 #       fi
20 #     fi
21 #   fi
22 # fi
23
24 # if [ -f /etc/debbugs/nextnumber ]; then
25 #   rm -f /etc/debbugs/nextnumber
26 # fi
27
28 #DEBHELPER#