tags 606706 patch
thanks

Hi,

 Here's a proposed patch for debian/netams.config (and more).


diff -Nru netams-3.4.5/debian/changelog netams-3.4.5/debian/changelog
--- netams-3.4.5/debian/changelog       2010-07-24 21:37:17.000000000 +0900
+++ netams-3.4.5/debian/changelog       2010-12-28 12:32:33.000000000 +0900
@@ -1,3 +1,13 @@
+netams (3.4.5-2.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * debian/netams.config
+    - avoid installation failure and loop (Closes: #606706)
+  * debian/netams.postrm
+    - remove all files when purging
+
+ -- Hideki Yamane <henr...@debian.org>  Tue, 28 Dec 2010 12:32:21 +0900
+
 netams (3.4.5-2) unstable; urgency=low
 
   * debian/Rules.make: Add -lcrypto to fix FTBFS with binutils-gold.
diff -Nru netams-3.4.5/debian/netams.config netams-3.4.5/debian/netams.config
--- netams-3.4.5/debian/netams.config   2010-07-06 07:42:02.000000000 +0900
+++ netams-3.4.5/debian/netams.config   2010-12-28 12:34:35.000000000 +0900
@@ -15,8 +15,8 @@
     # if password isn't empty we ask for password verification
     if [ -z "$RET" ]; then
       db_fset netams/password-empty seen false
-      db_input critical netams/password-empty
-      continue
+      db_input critical netams/password-empty || true
+      break
     fi
     admin_pw="$RET"
     db_input critical netams/admin-password-again || true
@@ -32,7 +32,7 @@
       break
     fi
     db_fset netams/password-mismatch seen false
-    db_input critical netams/password-mismatch
+    db_input critical netams/password-mismatch || true
     db_set netams/admin-password "" 
     db_set netams/admin-password-again ""
     db_go
diff -Nru netams-3.4.5/debian/netams.postrm netams-3.4.5/debian/netams.postrm
--- netams-3.4.5/debian/netams.postrm   2010-07-06 07:42:02.000000000 +0900
+++ netams-3.4.5/debian/netams.postrm   2010-12-27 13:22:52.000000000 +0900
@@ -49,6 +49,13 @@
 
        if [ "$1" = "purge" ]; then
                rm -rf /var/lib/netams
+       
+               if [ -f /etc/dbconfig-common/netams.conf ]; then
+                       rm /etc/dbconfig-common/netams.conf
+               fi
+               if [ ! -f /etc/dbconfig-common/* ]; then
+                       rmdir /etc/dbconfig-common
+               fi
        fi
 fi
 



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to