[subversion-commit] SVN tetex commit + diffs: r534 - tex-common/trunk/debian

Norbert Preining preining-guest at costa.debian.org
Tue Feb 14 18:04:50 UTC 2006


Author: preining-guest
Date: 2006-02-14 18:04:42 +0000 (Tue, 14 Feb 2006)
New Revision: 534

Modified:
   tex-common/trunk/debian/config.in
Log:
fixes to the config.in logic


Modified: tex-common/trunk/debian/config.in
===================================================================
--- tex-common/trunk/debian/config.in	2006-02-14 17:32:47 UTC (rev 533)
+++ tex-common/trunk/debian/config.in	2006-02-14 18:04:42 UTC (rev 534)
@@ -55,16 +55,31 @@
   PERMS=$(stat --format="%a" /var/cache/fonts)
   GROUP=$(stat --format="%G" /var/cache/fonts)
 
-  # if the permissions are 
-  # - either the new permissions 3775 as we want to ship them
-  # - or the permissions as shipped by old tetex versions
-  # then set the managecache to true, otherwise to false
-  # we will later change it to 3775 in the true case
-  if [ $PERMS = 3775 -o $PERMS = 1777 ] ; then
-    db_set tex-common/managecache true || true
-    db_set tex-common/groupname "$GROUP" || true
+  # see wether we already have asked this question once
+  db_fget tex-common/managecache seen || true
+  SEEN="$RET"
+
+  if [ $SEEN = true ] ; then
+    # this question was already shown
+    # if the permissions are still 3775 we set managecache to true
+    if [ $PERMS = 3775 ] ; then
+      db_set tex-common/managecache true || true
+      db_set tex-common/groupname "$GROUP" || true
+    else
+      db_set tex-common/managecache false || true
+    fi
   else
-    db_set tex-common/managecache false || true
+    # this question has not been seen, so if the permissions are 
+    # - either the new permissions 3775 as we want to ship them
+    # - or the permissions as shipped by old tetex versions
+    # then set the managecache to true, otherwise to false
+    # we will later change it to 3775 in the true case
+    if [ $PERMS = 3775 -o $PERMS = 1777 ] ; then
+      db_set tex-common/managecache true || true
+      db_set tex-common/groupname "$GROUP" || true
+    else
+      db_set tex-common/managecache false || true
+    fi
   fi
   db_input low tex-common/managecache || true
   db_go




More information about the Pkg-tetex-commits mailing list