[Pkg-cups-devel] Bug#637978: cups: Please add a dpkg trigger to update PPDs on driver upgrades

Didier Raboud odyx at debian.org
Tue Aug 16 12:04:54 UTC 2011


tags 637978 + patch
thanks

So, after some more work and thoughts, here is a new patch proposal 
(attached).

Le mardi, 16 août 2011 13.14:13, Didier Raboud a écrit :
> The current plan is:
> 
> 1) externalize the current postinst code to an external program, based on
> the current cupsppdupdater code in pkg-printing-tools.

Discarded, for performance reasons: keeping the code self-contained in the 
postinst allows me to save the `lpinfo -m` once for all updates.

> 2) Have cups trigger on files under /usr/share/cups/ppd-updaters/
> Those files, put there by the driver packages, will contain shell variable
> definitions: DRIVER_REGEXP and GENNICKNAME_REGEXP , which cups' postinst
> will use (when called as "triggered") to launch cupsppdupdater with the
> correct parameters.

Done and tested locally with one driver.

> 3) Migrate all drivers to stop duplicating functionality in their postinsts
> and ship a /usr/share/cups/ppd-updaters/${package} file with the correct
> variables (+ versioned Breaks against cups).

"To be done", of course.

Please comment on the attached patch; 

cheers,

-- 
OdyX
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cups-triggers_1.5.0-1.1.debdiff
Type: text/x-patch
Size: 6430 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20110816/5a7d49c1/attachment.bin>


More information about the Pkg-cups-devel mailing list