[xml/sgml-pkgs] Bug#576445: [patch]: sgml-base: Fails to purge

Hideki Yamane henrich at debian.or.jp
Mon Apr 12 08:39:07 UTC 2010


Hi,

 sgml-base package creates files under /etc in its postinst script.
 When you got that error, postinst script didn't ran.


diff -urN sgml-base-1.99.0.orig/debian/changelog sgml-base-1.99.0+nmu1/debian/changelog
--- sgml-base-1.99.0.orig/debian/changelog      2009-07-12 23:51:43.000000000 +0900
+++ sgml-base-1.99.0+nmu1/debian/changelog      2010-04-12 16:00:40.817197425 +0900
@@ -1,3 +1,10 @@
+sgml-base (1.99.0+nmu1) experimental; urgency=low
+
+  * Non-maintainer upload.
+  * fix remove failure if postinst have not run yet (Closes: #576445)
+
+ -- Hideki Yamane (Debian-JP) <henrich at debian.or.jp>  Mon, 12 Apr 2010 16:00:38 +0900
+
 sgml-base (1.99.0) experimental; urgency=low

   * Makefile: Dropped build system. debian/rules and debhelper are enough.
diff -urN sgml-base-1.99.0.orig/debian/sgml-base.postrm sgml-base-1.99.0+nmu1/debian/sgml-base.postrm
--- sgml-base-1.99.0.orig/debian/sgml-base.postrm       2008-09-02 21:14:41.000000000 +0900
+++ sgml-base-1.99.0+nmu1/debian/sgml-base.postrm       2010-04-12 15:58:50.849195103 +0900
@@ -15,16 +15,11 @@
     rm -f /etc/sgml/catalog /etc/sgml/catalog.old

     ## ------------------------------------------------------------------
-    ## remove /etc/sgml
-    cd /etc
-    rmdir --ignore-fail-on-non-empty sgml
-    cd - >/dev/null
-
-    ## ------------------------------------------------------------------
-    ## remove /var/lib/sgml-base
-    cd /var/lib
-    rmdir --ignore-fail-on-non-empty sgml-base
-    cd - >/dev/null
+    ## remove /etc/sgml and /var/lib/sgml-base
+    for dir in /etc/sgml /var/lib/sgml-base
+    if [ -d $dir ]; then
+       rmdir --ignore-fail-on-non-empty $dir
+    fi

 fi





More information about the debian-xml-sgml-pkgs mailing list