Yann Dirson <[EMAIL PROTECTED]>:
> Removing sfs-common ...
> /usr/share/doc-base/sfs-manual: cannot open control file for reading: No such 
> file or directory
> dpkg: error processing sfs-common (--remove):
>  subprocess pre-removal script returned error exit status 2

I can't actually reproduce this properly: I get the following error message:

> [EMAIL PROTECTED]:/# dpkg --purge sfs-common
> (Reading database ... 10890 files and directories currently installed.)
> Removing sfs-common ...
> Document `sfs-manual' is not installed, cannot remove.
> Purging configuration files for sfs-common ...
> removing sfs system account...
> ls: /var/lib/sfs/sockets/: No such file or directory
> [EMAIL PROTECTED]:/# echo $?
> 0
> [EMAIL PROTECTED]:/#

In other words, the error message is different, and the removal doesn't crash 
on it.
I don't know what causes this.

Still, the attached patch should fix it. I'm hesitant to actually do an NMU 
before I can
reproduce. Jaakko, do you have a comment?

-- 
Fundamental truth #1: Complexity is the enemy.
diff -u sfs-0.8-0+pre20050819.1/debian/changelog sfs-0.8-0+pre20050819.1/debian/changelog
--- sfs-0.8-0+pre20050819.1/debian/changelog
+++ sfs-0.8-0+pre20050819.1/debian/changelog
@@ -1,3 +1,11 @@
+sfs (1:0.8-0+pre20050819.1-2.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * debian/sfs-common.prerm: Removed call to install-doc, since no
+    documentation is actually installed by the package.
+
+ -- Lars Wirzenius <[EMAIL PROTECTED]>  Wed,  8 Mar 2006 16:31:15 +0200
+
 sfs (1:0.8-0+pre20050819.1-2.1) unstable; urgency=low
 
   * NMU to fix FTBFS bug (Closes: #338532), thanks to Damian Viano:
diff -u sfs-0.8-0+pre20050819.1/debian/sfs-common.prerm sfs-0.8-0+pre20050819.1/debian/sfs-common.prerm
--- sfs-0.8-0+pre20050819.1/debian/sfs-common.prerm
+++ sfs-0.8-0+pre20050819.1/debian/sfs-common.prerm
@@ -6,10 +6,6 @@
     install-info --quiet --remove /usr/share/info/sfs.info.gz
     install-info --quiet --remove /usr/share/info/sfs.info-1.gz
     install-info --quiet --remove /usr/share/info/sfs.info-2.gz
-    #doc-base    
-    if command -v install-docs >/dev/null 2>&1; then
-    	install-docs -r sfs-manual
-    fi
     if [ -L /usr/doc/sfs ]; then
     rm -f /usr/doc/sfs
     fi

Reply via email to