[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#792731: cups: incorrect MIME type on cups.css



Control: tags -1 +patch -unreproducible

Le dimanche, 19 juillet 2015, 15.29:28 Stephen Kitt a écrit :
> On Sun, 19 Jul 2015 12:39:36 +0200, OdyX wrote:
> > Okay. Do you happen to have mime.types or mime.convs files in
> > /etc/cups or /usr/share/cups ?
> 
> Indeed, I have rather old copies in /etc/cups:
> 
> % ls -l /etc/cups/mime.*
> -rw-r--r-- 1 root root 4424 Jul 11  2009 /etc/cups/mime.convs
> -rw-r--r-- 1 root root 6184 Aug 20  2007 /etc/cups/mime.types

Ah, there! Can you confirm that deleting these two configuration files 
restores the correct behaviour of the webinterface?

These files were removed from these paths in CUPS 1.4.0~svn8773-1, in 
2009, and weren't cleaned up back then. Let's fix that now!

(I can at least confirm that adding those from CUPS 1.3.11 (from 
snapshot.d.o) indeed breaks the treatment of the cups.css file.)

Cheers,
OdyX
>From 2e69c25ff31fe3ea38f140198d8582d7b2b7ec4a Mon Sep 17 00:00:00 2001
From: Didier Raboud <odyx@debian.org>
Date: Mon, 20 Jul 2015 08:23:50 +0200
Subject: [PATCH] Add maintscript stanzas to properly remove the mime.convs and
 mime.types conffiles in /etc/cups that are not shipped in this path since
 1.4.0~svn8773-1~

Closes: #792731
LP: #1475683
STR: #4593
---
 debian/cups.maintscript | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/debian/cups.maintscript b/debian/cups.maintscript
index 1640bc0..67a6e70 100644
--- a/debian/cups.maintscript
+++ b/debian/cups.maintscript
@@ -1,3 +1,5 @@
+rm_conffile /etc/cups/mime.convs 1.4.0~svn8773-1~
+rm_conffile /etc/cups/mime.types 1.4.0~svn8773-1~
 rm_conffile /etc/cups/acroread.conf 1.6.2-9~
 rm_conffile /etc/cups/pdftops.conf  1.6.2-9~
 rm_conffile /etc/modprobe.d/blacklist-cups-usblp.conf 1.5.3-2.1~
-- 
2.1.4


Reply to: