[Ultrapossum-cvs 710] ultrapossum/debian ...

Back to archive index

Masato Taruishi taru****@users*****
2004年 10月 7日 (木) 20:15:42 JST


===================================================================
RCS file: ultrapossum/debian/debian.cf,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- ultrapossum/debian/debian.cf	2004/03/13 14:25:53	1.1.1.1
+++ ultrapossum/debian/debian.cf	2004/10/07 11:15:42	1.2
@@ -1,4 +1,4 @@
 ## UltraPossum Debian Specific Configuration
 
 # Uncomment this if you want to do SI tests on configure time
-#TEST_ON_UPGRADE=1
+#TEST_ON_UPGRADE=true
===================================================================
RCS file: ultrapossum/debian/ultrapossum.postinst,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ultrapossum/debian/ultrapossum.postinst	2004/10/07 04:25:34	1.1
+++ ultrapossum/debian/ultrapossum.postinst	2004/10/07 11:15:42	1.2
@@ -17,18 +17,24 @@
 # the debian-policy package
 #
 
+. /usr/share/debconf/confmodule
+
 case "$1" in
     configure)
-	if test "x$1" = "xconfigure"; then
-	  if test -f "/etc/ultrapossum/debian.cf"; then
-	    . /etc/ultrapossum/debian.cf
-	    if test "x$TEST_ON_UPGRADE" != "x"; then
-	      if test -x "/usr/sbin/ultrapossum-test"; then
-	        /usr/sbin/ultrapossum-test
-	      fi
-	    fi
+
+
+        eval `ultrapossum-config init`
+	trap "eval `ultrapossum-config term`" 0
+
+	db_get ultrapossum/test_on_upgrade
+	ultrapossum_setconf_shell /etc/ultrapossum/debian.cf "TEST_ON_UPGRADE" "$RET"
+	. /etc/ultrapossum/debian.cf
+	if test "x$TEST_ON_UPGRADE" = "xtrue"; then
+	  if test -x "/usr/sbin/ultrapossum-test"; then
+	    /usr/sbin/ultrapossum-test
 	  fi
 	fi
+
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)



Ultrapossum-cvs メーリングリストの案内
Back to archive index