[Pkg-cups-devel] r59 - cupsys/trunk/debian

Kenshi Muto kmuto at costa.debian.org
Wed Dec 14 21:56:46 UTC 2005


Author: kmuto
Date: Wed Dec 14 21:56:46 2005
New Revision: 59

Modified:
   cupsys/trunk/debian/cupsys.config
Log:
add timeout routine to avoid lockup

Modified: cupsys/trunk/debian/cupsys.config
==============================================================================
--- cupsys/trunk/debian/cupsys.config	(original)
+++ cupsys/trunk/debian/cupsys.config	Wed Dec 14 21:56:46 2005
@@ -83,9 +83,15 @@
   db_input low cupsys/ports || true
   db_go
   db_get cupsys/ports
+  STATE=0
   while ! is_ports "$RET"; do
     db_input critical cupsys/portserror || true
     db_go
+    STATE=$(expr $STATE + 1)
+    if [ "$STATE" = "5" ]; then
+      echo "Illegal port value for CUPS. Please correct this by running 'dpkg-reconfigure cupsys'."
+      exit 1
+    fi
     db_input low cupsys/ports || true
     db_go
     db_get cupsys/ports
@@ -105,9 +111,15 @@
   db_input low cupsys/ports || true
   db_go
   db_get cupsys/ports
+  STATE=0
   while ! is_ports "$RET"; do
     db_input critical cupsys/portserror || true
     db_go
+    STATE=$(expr $STATE + 1)
+    if [ "$STATE" = "5" ]; then
+      echo "Illegal port value for CUPS. Please correct this by running 'dpkg-reconfigure cupsys'."
+      exit 1
+    fi
     db_input low cupsys/ports || true
     db_go
     db_get cupsys/ports



More information about the Pkg-cups-devel mailing list