Author: jsmeix Date: Thu Apr 16 17:07:43 2009 New Revision: 56822 URL: http://svn.opensuse.org/viewcvs/yast?rev=56822&view=rev Log: - Undo using "-o document-format=application/vnd.cups-postscript" when submitting the test page because it does not work for the Gutenprint driver (see Novell/Suse Bugzilla bnc#467877). - 2.18.12 Modified: trunk/printer/VERSION trunk/printer/package/yast2-printer.changes trunk/printer/src/overview.ycp Modified: trunk/printer/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/VERSION?rev=56822&r1=56821&r2=56822&view=diff ============================================================================== --- trunk/printer/VERSION (original) +++ trunk/printer/VERSION Thu Apr 16 17:07:43 2009 @@ -1 +1 @@ -2.18.11 +2.18.12 Modified: trunk/printer/package/yast2-printer.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/package/yast2-printer.changes?rev=56822&r1=56821&r2=56822&view=diff ============================================================================== --- trunk/printer/package/yast2-printer.changes (original) +++ trunk/printer/package/yast2-printer.changes Thu Apr 16 17:07:43 2009 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Thu Apr 16 17:00:12 CEST 2009 - jsmeix@suse.de + +- Undo using "-o document-format=application/vnd.cups-postscript" + when submitting the test page because it does not work for + the Gutenprint driver (see Novell/Suse Bugzilla bnc#467877). +- 2.18.12 + +------------------------------------------------------------------- Thu Apr 16 14:35:59 CEST 2009 - jsmeix@suse.de - Removed the "filters" package from the "Add Driver" dialog Modified: trunk/printer/src/overview.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/src/overview.ycp?rev=56822&r1=56821&r2=56822&view=diff ============================================================================== --- trunk/printer/src/overview.ycp (original) +++ trunk/printer/src/overview.ycp Thu Apr 16 17:07:43 2009 @@ -470,25 +470,14 @@ } string testprint_job_title = "YaST2testprint_" + queue_name; // Do not enforce to talk to the cupsd on localhost when submiting the testpage - // because testpage printing must also work for a "client-only" config. - // Use "-o document-format=application/vnd.cups-postscript" to be prepared - // for the upcomming PDF workflow. - // In the PDF workflow everything is converted to PDF before further processing so that - // PostScript programs like the CUPS test page are executed by Ghostscript when it is called by pstopdf. - // The option "-o document-format=application/vnd.cups-postscript" overrides the PDF workflow so that - // PostScript programs are executed by the PostScript printer or the rasterizing instance of Ghostscript. - // A consequence is that then pstops is not run so that -o page-label="queue_name:YaST2testprint@hostname" - // does no longer work which is now implemented via a sed magic which is fail-safe because - // sed would output the unchanged CUPS test page if it cannot do the substitution. - // The output of $(hostname) is also safe for the PostScript code "(string) show" because - // a hostname contains up to 24 ASCII characters A-Z a-z 0-9 and the hyphen (see RFC 952): - if( ! Printerlib::ExecuteBashCommand( "sed -e \"s/Printer Test Page/$(hostname || echo 'YaST') : " - + queue_name - + "/\" /usr/share/cups/data/testprint.ps | /usr/bin/lp -d '" + // because testpage printing must also work for a "client-only" config: + if( ! Printerlib::ExecuteBashCommand( "/usr/bin/lp -d '" + queue_name + "' -t '" + testprint_job_title - + "' -o document-format=application/vnd.cups-postscript" + + "' -o page-label=\"" + + queue_name + + ":YaST2testprint@$(hostname)\" /usr/share/cups/data/testprint.ps" ) ) { Popup::ErrorDetails( sformat( // Message of a Popup::ErrorDetails -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org