Author: jsrain Date: Fri Nov 6 14:14:05 2009 New Revision: 59374 URL: http://svn.opensuse.org/viewcvs/yast?rev=59374&view=rev Log: issue an error message instead of trying to start YaST in NCurses without a terminal available (bnc#502688) Modified: trunk/yast2/package/yast2.changes trunk/yast2/scripts/yast2 Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=59374&r1=59373&r2=59374&view=diff ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Fri Nov 6 14:14:05 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Nov 6 14:05:03 CET 2009 - jsrain@suse.cz + +- issue an error message instead of trying to start YaST in + NCurses without a terminal available (bnc#502688) + +------------------------------------------------------------------- Mon Oct 26 16:53:20 CET 2009 - mzugec@suse.cz - NetworkPopup: display link state (FaTE#307166) Modified: trunk/yast2/scripts/yast2 URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/scripts/yast2?rev=59374&r1=59373&r2=59374&view=diff ============================================================================== --- trunk/yast2/scripts/yast2 (original) +++ trunk/yast2/scripts/yast2 Fri Nov 6 14:14:05 2009 @@ -408,6 +408,11 @@ echo "Something is wrong with the YaST user interface." >&2 exit_code=1 # also skips y2base later fi + if [ -n "$DISPLAY" -a ! -t 0 ]; then + rpm -V yast2-core yast2-ncurses yast2-qt yast2-gtk >&2 + echo "Something is wrong with the YaST user interface, NCurses selected byt no terminal available." >&2 + exit_code=1 # also skips y2base later + fi # quick hack: treat gtk like qt elif [ "$SELECTED_GUI" = "qt" -o "$SELECTED_GUI" = "gtk" ]; then -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org