Author: jsmeix Date: Tue Apr 13 16:17:09 2010 New Revision: 61691 URL: http://svn.opensuse.org/viewcvs/yast?rev=61691&view=rev Log: In overview.ycp for testpage printing added "tail -n 20" when the CUPS error_log info is grepped to avoid a too tall popup which may show too many lines (in particular in case of the oververbose Gutenprint driver). Modified: trunk/printer/src/overview.ycp Modified: trunk/printer/src/overview.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/src/overview.ycp?rev=61691&r1=61690&r2=61691&view=diff ============================================================================== --- trunk/printer/src/overview.ycp (original) +++ trunk/printer/src/overview.ycp Tue Apr 13 16:17:09 2010 @@ -742,9 +742,9 @@ { // Note the YCP quoting: \\ becomes \ in the commandline: Printerlib::ExecuteBashCommand( "grep '\\[Job " + test_print_job_number - + "\\]' /var/log/cups/error_log | grep -v '^[dD]'" + + "\\]' /var/log/cups/error_log | grep -v '^[dD]' | tail -n 20" ); - test_print_cups_error_log = Printerlib::result["stdout"]:""; + test_print_cups_error_log = "...\n" + Printerlib::result["stdout"]:""; } // Ignore an effectively empty test_print_cups_error_log: if( "" != filterchars( test_print_cups_error_log, Printer::alnum_chars ) ) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org