Bug#627027: evince-gtk: registers unsupported image/* (e.g., image/jpeg) MIME type with high priority
Jonathan Nieder
jrnieder at gmail.com
Sun Aug 28 20:21:57 UTC 2011
Hi,
Michael Biebl wrote:
> evince (3.0.2-2) experimental; urgency=low
> .
> [ Josselin Mouette ]
> * evince-gtk.mime: removed too. Really closes: #627027.
Thanks! I can confirm that after running "update-mime", it works.
How about this patch on top?
---
debian/changelog | 7 +++++++
debian/evince-gtk.postinst | 9 +++++++++
debian/evince.postinst | 9 +++++++++
3 files changed, 25 insertions(+), 0 deletions(-)
create mode 100644 debian/evince-gtk.postinst
create mode 100644 debian/evince.postinst
diff --git a/debian/changelog b/debian/changelog
index 72cb686d..5d2b59a1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+evince (3.0.2-2.1) local; urgency=low
+
+ * evince.postinst, evince-gtk.postinst: Update /etc/mailcap on
+ upgrade so removal of mime-support files takes effect immediately.
+
+ -- Jonathan Nieder <jrnieder at gmail.com> Sun, 28 Aug 2011 14:56:38 -0500
+
evince (3.0.2-2) experimental; urgency=low
[ Josselin Mouette ]
diff --git a/debian/evince-gtk.postinst b/debian/evince-gtk.postinst
new file mode 100644
index 00000000..edc87292
--- /dev/null
+++ b/debian/evince-gtk.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "configure" ] &&
+ dpkg --compare-versions "$2" le-nl 3.0.2-2 &&
+ which update-mime >/dev/null 2>&1; then
+ update-mime
+fi
+#DEBHELPER#
diff --git a/debian/evince.postinst b/debian/evince.postinst
new file mode 100644
index 00000000..e1741a26
--- /dev/null
+++ b/debian/evince.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "configure" ] &&
+ dpkg --compare-versions "$2" le-nl 3.0.2-1 &&
+ which update-mime >/dev/null 2>&1; then
+ update-mime
+fi
+#DEBHELPER#
--
1.7.6
More information about the pkg-gnome-maintainers
mailing list