]> git.donarmstrong.com Git - debbugs.git/commitdiff
* temporarily disable the non-debhelper postinsts for now
authorDon Armstrong <don@donarmstrong.com>
Mon, 23 Mar 2009 06:09:57 +0000 (23:09 -0700)
committerDon Armstrong <don@donarmstrong.com>
Mon, 23 Mar 2009 06:09:57 +0000 (23:09 -0700)
debian/postinst

index 4b76f38a2445f56ab4a6863cf14a8d1ac315be12..10dddc687b724e96c2ca99908d2aa10233753038 100755 (executable)
@@ -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#