just checked the following patch works:

# before
$ sudo dpkg --force-depends --purge mozilla-firefox
dpkg: mozilla-firefox: dependency problems, but removing anyway as you request:
 mozilla-firefox-gnome-support depends on mozilla-firefox (= 1.0-4).
(Reading database ... 82173 files and directories currently installed.)
Removing mozilla-firefox ...
Purging configuration files for mozilla-firefox ...
$ sudo dpkg --purge mozilla-firefox-gnome-support
(Reading database ... 81699 files and directories currently installed.)
Removing mozilla-firefox-gnome-support ...
/var/lib/dpkg/info/mozilla-firefox-gnome-support.postrm: line 5: 
update-mozilla-firefox-chrome: command not found
dpkg: error processing mozilla-firefox-gnome-support (--purge):
 subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
 mozilla-firefox-gnome-support

# after
$ sudo dpkg --force-depends --purge mozilla-firefox 
dpkg: mozilla-firefox: dependency problems, but removing anyway as you request:
 mozilla-firefox-gnome-support depends on mozilla-firefox (= 1.0+dfsg.1-1.1).
(Reading database ... 82172 files and directories currently installed.)
Removing mozilla-firefox ...
Purging configuration files for mozilla-firefox ...
$ sudo dpkg --purge mozilla-firefox-gnome-support 
(Reading database ... 81699 files and directories currently installed.)
Removing mozilla-firefox-gnome-support ...
Purging configuration files for mozilla-firefox-gnome-support ...

diff -Nru /tmp/8SIXjj7A0i/mozilla-firefox-1.0+dfsg.1/debian/changelog 
/tmp/zQMGs4YDro/mozilla-firefox-1.0+dfsg.1/debian/changelog
--- /tmp/8SIXjj7A0i/mozilla-firefox-1.0+dfsg.1/debian/changelog 2005-01-10 
03:23:26.000000000 +0000
+++ /tmp/zQMGs4YDro/mozilla-firefox-1.0+dfsg.1/debian/changelog 2005-01-10 
03:24:34.922535608 +0000
@@ -1,3 +1,12 @@
+mozilla-firefox (1.0+dfsg.1-1.1) unstable; urgency=low
+
+  * NMU.
+  * debian/mozilla-firefox-gnome-support.postrm: do not call
+    update-mozilla-firefox-chrome when firefox has already been removed.
+    (renders package uninstallable) (Closes: #287355)
+
+ -- Paul Brossier <[EMAIL PROTECTED]>  Mon, 10 Jan 2005 03:06:32 +0000
+
 mozilla-firefox (1.0+dfsg.1-1) unstable; urgency=low

   * Not a new upstream release.
diff -Nru 
/tmp/8SIXjj7A0i/mozilla-firefox-1.0+dfsg.1/debian/mozilla-firefox-gnome-support.postrm
 
/tmp/zQMGs4YDro/mozilla-firefox-1.0+dfsg.1/debian/mozilla-firefox-gnome-support.postrm
--- 
/tmp/8SIXjj7A0i/mozilla-firefox-1.0+dfsg.1/debian/mozilla-firefox-gnome-support.postrm
      2005-01-10 03:23:26.000000000 +0000
+++ 
/tmp/zQMGs4YDro/mozilla-firefox-1.0+dfsg.1/debian/mozilla-firefox-gnome-support.postrm
      2005-01-10 03:24:34.930534392 +0000
@@ -2,7 +2,9 @@

 case "$1" in
     abort-install|purge|remove)
-        update-mozilla-firefox-chrome
+       if [ -x /usr/sbin/update-mozilla-firefox-chrome ]; then
+               /usr/sbin/update-mozilla-firefox-chrome
+       fi
         ;;
     *)
         ;;

Reply via email to