From: Don Armstrong Date: Mon, 23 Mar 2009 06:09:57 +0000 (-0700) Subject: * temporarily disable the non-debhelper postinsts for now X-Git-Tag: release/2.6.0~461^2~30 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d04092064702324ba1acd478c3d75a809ce78f84;p=debbugs.git * temporarily disable the non-debhelper postinsts for now --- diff --git a/debian/postinst b/debian/postinst index 4b76f38..10dddc6 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,27 +1,28 @@ #!/bin/sh -e -if [ "$1" = "configure" ]; then - /usr/sbin/debbugsconfig - if dpkg --compare-versions "$2" lt 2.4; then - spool=`perl -e 'require "/etc/debbugs/config"; print $gSpoolDir;'` - if [ -d "$spool/db" ]; then - if [ -d "$spool/db-h" ]; then - echo "Cannot migrate bug database to hashed format, because" >&2 - echo "$spool/db-h already exists." >&2 - echo "Rectify the situation and run the following command by hand:" >&2 - echo " /usr/sbin/debbugs-dbhash \"$spool/db\" \"$spool/db-h\"" >&2 - else - echo "Migrating bug database to hashed format." >&2 - /usr/sbin/debbugs-dbhash "$spool/db" "$spool/db-h" - echo "You can remove bug logs from $spool/db" >&2 - echo "after ensuring that the new database works." >&2 - fi - fi - fi -fi - -if [ -f /etc/debbugs/nextnumber ]; then - rm -f /etc/debbugs/nextnumber -fi +# Temporarily disable the postinst for now +# if [ "$1" = "configure" ]; then +# /usr/sbin/debbugsconfig +# if dpkg --compare-versions "$2" lt 2.4; then +# spool=`perl -e 'require "/etc/debbugs/config"; print $gSpoolDir;'` +# if [ -d "$spool/db" ]; then +# if [ -d "$spool/db-h" ]; then +# echo "Cannot migrate bug database to hashed format, because" >&2 +# echo "$spool/db-h already exists." >&2 +# echo "Rectify the situation and run the following command by hand:" >&2 +# echo " /usr/sbin/debbugs-dbhash \"$spool/db\" \"$spool/db-h\"" >&2 +# else +# echo "Migrating bug database to hashed format." >&2 +# /usr/sbin/debbugs-dbhash "$spool/db" "$spool/db-h" +# echo "You can remove bug logs from $spool/db" >&2 +# echo "after ensuring that the new database works." >&2 +# fi +# fi +# fi +# fi +# +# if [ -f /etc/debbugs/nextnumber ]; then +# rm -f /etc/debbugs/nextnumber +# fi #DEBHELPER#