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

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



Control: tags -1 +pending

Le lundi, 20 juillet 2015, 16.59:42 Stephen Kitt a écrit :
> On Mon, 20 Jul 2015 08:31:59 +0200, OdyX wrote:
> > 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 used your patch instead of removing the files directly. For the
> upgrade to delete the files, you need to either drop the version from
> the rm_conffile lines, or specify 2.0.3-8; specifying
> 1.4.0~svn8773-1~ means that the files are only removed on upgrades
> from 1.4.0~svn8773-1~ (which wasn't the case for me).

Good catch, but not exactly correct explanation; from man dpkg-
maintscript-helper:

> prior-version
> 	Defines the latest version of the package whose upgrade should
> 	trigger the operation. It is important to calculate prior-version
> 	correctly so that the operations  are  correctly  performed  even if
> 	the user rebuilt the package with a local version. If prior-version
> 	is empty or omitted, then the operation is tried on every upgrade
> 	(note: it's safer to give the version and have the operation tried
> 	only once).
> 	
> 	If the conffile has not been shipped for several versions, and you
> 	are now modifying the maintainer scripts to clean up the obsolete
> 	file, prior-version should be based  on
> 	the version of the package that you are now preparing, not the first 
> 	version of the package that lacked the conffile. This applies to all
> 	other actions in the same way.

We're in the latter case, so the version should be 2.0.3-9~ .

Thanks for the heads'up and extensive test, will upload!

Cheers,
OdyX

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: