[Pkg-hpijs-devel] Bug#717273: printer-driver-postscript-hp: HP LaserJet 1200: User can choose between two identical PS drivers

Stefan Nagy public at stefan-nagy.at
Tue Jul 30 19:33:38 UTC 2013


Hi OdyX,

> > when I install printer-driver-postscript-hp I get two new drivers for
> > my printer model HP LaserJet 1200 in CUPS (I use the web-based
> > administration interface) to choose from:
> > HP LaserJet 1200 Postscript (recommended) (en)
> > HP LaserJet 1200 Postscript (recommended) (en)
> > 
> > These two drivers don't just sound identical, as far as I can tell
> > they are (I compared the PPD files). When I uninstall
> > printer-driver-postscript-hp both entries are gone.
> 
> I think this is https://github.com/vitorbaptista/pyppd/issues/1
> 
> What do you think?

Sorry, I read the bug report on github more carefully now and realized
that the citation of Till Kamppeter in the last comment of vitorbaptista
is highly relevant in this context:

> Yes, the duplicate results for one and the same PPD are really a bug,
> but note that there are also cases where there really need to be more
> than one result. This is if a PPD has more than one "Product" line,
> meaning that it is for more than one printer model. Than each "Product"
> line must generate one result for this PPD. If there is only one
> "Product" line there should be only one result for this PPD.
> 
> AFAIR the bug is that there is one result line based on the "Product"
> line and another based on the "NickName" (or "ModelName"?). The
> "NickName"/"ModelName" should only be used if there is no "Product" line
> at all, otherwise one result for each "Product" line. The "Product" line
> (without parantheses) should be the MDL of the corresponding device ID,
> the MFG should come from the "Manufacturer" line in the PPD.

In my case the PPD has two "Product"-lines:
*Product: "(HP LaserJet 1200)"
*Product: "(Hewlett-Packard HP LaserJet 1200)"

Since the two lines don't represent two different printer models I'd say
one of those two lines could be deleted – and this would fix this bug.
Or is it possible that both lines are needed in some way?

Thanks,
Stefan.



More information about the Pkg-hpijs-devel mailing list