[yast-commit] r61091 - /trunk/printer/tools/autodetect_print_queues
Author: jsmeix Date: Tue Mar 2 11:43:19 2010 New Revision: 61091 URL: http://svn.opensuse.org/viewcvs/yast?rev=61091&view=rev Log: Fixed bnc#584540 "autodetect_print_queues not backward compatible" by testing for the positive output "scheduler is running" via if ! $LPSTAT -h $SERVERNAME -r | grep -q 'scheduler is running' in tools/autodetect_print_queues (i.e. the same way as already implemented in src/Printerlib.ycp). Modified: trunk/printer/tools/autodetect_print_queues Modified: trunk/printer/tools/autodetect_print_queues URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/tools/autodetect_print_queues?rev=61091&r1=61090&r2=61091&view=diff ============================================================================== --- trunk/printer/tools/autodetect_print_queues (original) +++ trunk/printer/tools/autodetect_print_queues Tue Mar 2 11:43:19 2010 @@ -43,7 +43,7 @@ fi # Since CUPS 1.4 'lpstat -r' results true even when scheduler is not running. # Therefore we must now grep in its output: -if $LPSTAT -h $SERVERNAME -r | grep -q 'scheduler is not running' +if ! $LPSTAT -h $SERVERNAME -r | grep -q 'scheduler is running' then echo "Cannot access cupsd on '$SERVERNAME'" 1>&2 exit 2 fi -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsmeix@svn.opensuse.org