Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
pyppd creates double entries for many (all ?) standard PPDs #1
Conversation
|
@OdyX, sorry, I just saw your issue now. Do you still have this problem? |
OdyX
commented
Jul 1, 2013
|
@vitorbaptista : Yes, that's still happening, and a fix would be worthwhile. |
|
@OdyX Cool, I'll just double check with Till Kamppeter, which mentored me in this, to be sure this isn't the expected behavior (I remember we talking about it a long time ago). I'll keep you updated. |
|
@OdyX You're right. I'll take a look at this in the next couple weeks. If you want to have a try in the mean time, please feel free. The bug should be around https://github.com/vitorbaptista/pyppd/blob/master/pyppd/ppd.py#L103-L107 Also, just for recording in this issue, this was Till's answer:
|
|
I have a solution for the problem. my patch to pyppd/ppd.py introduces the following changes:
This removes tons of bogus lines, especially in foomatic-db-compressed-ppds, openprinting-ppds, and postscript-hp. I send the patch to you by e-mail as this system does not allow attachments and so has no patch input channel. |
OdyX
commented
Sep 4, 2013
|
Hi guys, Without double-checking Till's code, I have attached his commit as pull-request to this issue to ease Vitor's integration job. :-) Cheers, OdyX |
|
Hi all, I've just merged @tillkamppeter's commit and released version 1.0.1. @OdyX Could you please check that everything works as you expected? Reopen the issue if you find any problems :) Thanks again for the patch, @tillkamppeter. |
OdyX commentedSep 4, 2013
Hi Vitor,
my use-case is the building of foomatic-db-compressed-ppds on Debian (similarly on Ubuntu). The end-result is the following:
As you can see, this PPD file has two entries in the pyppd-compiled list. one DRV and one MFG/MDL pair.
This has the annoying side-effect to show these doubled entries in many (if not all) CUPS interfaces: localhost:631, system-config-printer-kde, etc.
What do you think, should these doubled entries for "single-printer, single-driver" be merged, and if so, how?
Cheers, OdyX