http://bugzilla.novell.com/show_bug.cgi?id=584540 http://bugzilla.novell.com/show_bug.cgi?id=584540#c0 Summary: yast2-printer: autodetect_print_queues not backward compatible Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: All OS/Version: openSUSE 11.3 Status: ASSIGNED Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: jsmeix@novell.com ReportedBy: jsmeix@novell.com QAContact: jsrain@novell.com CC: mzugec@novell.com Found By: Development Blocker: --- Because of bug #520599 autodetect_print_queues contains now ------------------------------------------------------------------------------ # 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' then echo "Cannot access cupsd on '$SERVERNAME'" 1>&2 exit 2 fi ------------------------------------------------------------------------------ But when there is no cupsd running at all (at least with CUPS 1.3) it does no longer detect this error and blindly continues: ------------------------------------------------------------------------------ nelson:/packages/yast/source/printer # rccups stop Shutting down cupsd done nelson:/packages/yast/source/printer # tools/autodetect_print_queues /usr/bin/lpstat: Unable to connect to server /usr/bin/lpstat: Unable to connect to server /usr/bin/lpstat: Unable to connect to server /usr/bin/lpstat: Unable to connect to server [ $[] ] nelson:/packages/yast/source/printer # echo $? 0 ------------------------------------------------------------------------------ For backward compatibility it must also grep for "Unable to connect to server" and to be on the safe side also detect when lpstat exits with non-zero exit code. In all those cases autodetect_print_queues must accordingly exit with non-zero exit code. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.