Comment 16 for bug 11746

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <20050110133444.GA6848@localhost>
Date: Mon, 10 Jan 2005 13:34:44 +0000
From: Paul Brossier <email address hidden>
To: <email address hidden>
Subject: Calls update-mozilla-firefox-chrome on purge

--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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 ...

--OXfL5xGRrasGEqWY
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="nmu.check_before_uninstall_gnome_support.patch"

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 address hidden> 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
         ;;
     *)
         ;;

--OXfL5xGRrasGEqWY--