I am assuming this current webrev replaced the previous
one:- http://reinharts.dyndns.org/webrev/
getNamedPrinterNameSysV() and
getNamedPrinterNameBSD()
should not be changed as they should always
create a UnixPrintService and so can do this
directly. You are subverting the code in
there to first check for CUPS which shouldn't
be needed.
I haven' t tested this out but from inspection,
I think the problem is in getServiceByName() where
it is ignorant of the CUPS possibility.
It needs to have the isCUPSRunning() check and
if so create an IPPPrintService().
So that's where you should place your call.
That is likely the only change here that is really necessary.
The refactoring is OK but but not essential to the fix.
-phil.
On 5/7/2013 2:23 AM, Patrick Reinhart wrote:
Hi Jennifer,
I have changed the test to not use non internal packages now that
produces the same results for my case now.
Now I still waiting for the feedback of Phil to get that fixed
correctly..
Best regards
Patirck
Quoting Jennifer Godinez <[email protected]>:
Yes I have and dicussed with Phil. It looks pretty good but there
may be a safer way to fix it since the fix is still using lpc/lpstat
commands for CUPS. Also, the regression test should be modified to
use non internal package. Phil will give his input on this too.
Jennifer