[cups.bugs] [LOW] STR #2949: Tell in the documentation/man page/help output of cupstestppd that CUPS accepts all PPDs which pass "cupstestppd -r" and does not accept PPDs which fail this cupstestppd call

Johannes Meixner jsmeix at suse.de
Tue Sep 23 02:34:29 PDT 2008


Hello,

On Sep 23 11:14 Johannes Meixner wrote (shortened):
>
> For me the final result with the current CUPS is that
> whatever printer setup tool must check the exit code
> of the "lpadmin" call and if it is non-zero, it should
> delete the queue when it is created anew right now.
> For example like:
> ------------------------------------------------------------------
> nelson:~ # lpadmin -p broken -v file:/dev/null -m broken.ppd.gz \
> || lpadmin -x broken || true
> lpadmin: Unable to copy PPD file!
>
> nelson:~ # lpstat -v broken
> lpstat: Unknown destination "broken"!
> ------------------------------------------------------------------

A typo, I meant something like

lpadmin -p queue -v ... -m ... || { lpadmin -x queue ; false ; }

to finish with non-zero exit code when lpadmin fails.


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
AG Nuernberg, HRB 16746, GF: Markus Rex





More information about the cups-devel mailing list