[cups.bugs] [MOD] STR #3027: When replacing the PPD with "lpadmin ... -m ..." defaults stay conserved, when using "lpadmin ... -P ..." not

Till Kamppeter till.kamppeter at gmail.com
Sat Nov 29 08:08:50 PST 2008


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

I am packaging printer drivers (as LSB RPMs and also as DEBs for Ubuntu)
and want to make the post-install script automatically update the PPDs of
the existing print queues. This I do by calling the "lpadmin" command
supplying only the print queue name and the name of the new PPD. I expect
that this replaces the PPD with the default settings of the PPD options to
be conserved.

With "lpadmin -p <queue> -m <PPD URI>" this works fine, but I have to call
the time-consuming "lpinfo -m" before to find the exact PPD URI on the
particular system. If I use "lpadmin -p <queue> -P <PPD file>" the PPD
gets also replaced but the default option settings are not conserved. They
do not get applied to the new PPD.

The fix is probably easy, as CUPS is already capable of passing the PPD
defaults over into a new PPD file (it does it with "-m").

Link: http://www.cups.org/str.php?L3027
Version: 1.3.9





More information about the cups mailing list