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

2010-07-17 Thread Hideki Yamane
On Sat, 17 Jul 2010 16:27:52 +0200 Michael Banck wrote: > On Mon, Apr 12, 2010 at 05:39:07PM +0900, Hideki Yamane wrote: > > +## 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 $

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

2010-07-17 Thread Michael Banck
Hi, On Mon, Apr 12, 2010 at 05:39:07PM +0900, Hideki Yamane wrote: > +## 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 This is not correct shell-code, you're missing

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

2010-07-16 Thread Michael Banck
On Mon, Apr 12, 2010 at 05:39:07PM +0900, Hideki Yamane wrote: > Hi, > > sgml-base package creates files under /etc in its postinst script. AFAICT, sgml-base creates those in the preinst: if [ "$1" = "install" -o "$1" = "upgrade" ] then ## --

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

2010-04-12 Thread Hideki Yamane
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.0 +0