[subversion-commit] SVN tetex commit + diffs: r221 - tetex-bin/trunk/debian

Frank Küster frank at costa.debian.org
Fri Oct 14 12:18:30 UTC 2005


Author: frank
Date: 2005-10-14 12:18:29 +0000 (Fri, 14 Oct 2005)
New Revision: 221

Modified:
   tetex-bin/trunk/debian/postinst.in
   tetex-bin/trunk/debian/postrm.in
Log:
- add a forgotten function to postrm.in
- debconf always needs || true

Modified: tetex-bin/trunk/debian/postinst.in
===================================================================
--- tetex-bin/trunk/debian/postinst.in	2005-10-14 10:21:59 UTC (rev 220)
+++ tetex-bin/trunk/debian/postinst.in	2005-10-14 12:18:29 UTC (rev 221)
@@ -163,7 +163,7 @@
     if dpkg --compare-versions "$old_version" lt 3.0; then
       # upgrade from sarge or old etch devel versions
       for question in $OBSOLETE_DEBCONFQ; do
-	db_unregister $question
+	db_unregister $question || true
       done
     fi
 

Modified: tetex-bin/trunk/debian/postrm.in
===================================================================
--- tetex-bin/trunk/debian/postrm.in	2005-10-14 10:21:59 UTC (rev 220)
+++ tetex-bin/trunk/debian/postrm.in	2005-10-14 12:18:29 UTC (rev 221)
@@ -18,8 +18,16 @@
 # give commandline args a name
 action=$1 # remove, purge, upgrade, failed-upgrade, abort-install, abort-upgrade, disappear
 
-# the following function is from tetex-base's postrm.functions;  it should be included in 
-# a new common.postrm.functions file in tex-common.
+# the following two functions are from tetex-base's postrm.functions;  they should
+# be included in a new common.postrm.functions file in tex-common.
+remove_with_backups(){
+  file=$1
+  for extension in $DPKG_EXT; do
+    rm -f $file$extension
+  done
+  rm -f $file
+}
+
 ucf_purge(){
   directory=/etc/texmf
   case "$1" in




More information about the Pkg-tetex-commits mailing list