Author: jsmeix Date: Fri Nov 6 15:49:58 2009 New Revision: 59381 URL: http://svn.opensuse.org/viewcvs/yast?rev=59381&view=rev Log: Fixed tools/modify_cupsd_conf so that it actually appends below the last Brows... line if exists for BrowsePoll and BrowseAddress which results a nicer looking cupsd.conf. Modified: trunk/printer/tools/modify_cupsd_conf Modified: trunk/printer/tools/modify_cupsd_conf URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/tools/modify_cupsd_conf?rev=59381&r1=59380&r2=59381&view=diff ============================================================================== --- trunk/printer/tools/modify_cupsd_conf (original) +++ trunk/printer/tools/modify_cupsd_conf Fri Nov 6 15:49:58 2009 @@ -209,9 +209,9 @@ APPEND_LINE_NUMBER="" if test -n "$LAST_BROWSE_LINE_NUMBER" then APPEND_LINE_NUMBER="$LAST_BROWSE_LINE_NUMBER" - fi - if test -n "$FIRST_EMPTY_LINE_NUMBER" - then APPEND_LINE_NUMBER="$FIRST_EMPTY_LINE_NUMBER" + else if test -n "$FIRST_EMPTY_LINE_NUMBER" + then APPEND_LINE_NUMBER="$FIRST_EMPTY_LINE_NUMBER" + fi fi for V in $( echo "$VALUE" | tac -s ' ' ) do if test -n "$APPEND_LINE_NUMBER" @@ -410,9 +410,9 @@ APPEND_LINE_NUMBER="" if test -n "$LAST_BROWSE_LINE_NUMBER" then APPEND_LINE_NUMBER="$LAST_BROWSE_LINE_NUMBER" - fi - if test -n "$FIRST_EMPTY_LINE_NUMBER" - then APPEND_LINE_NUMBER="$FIRST_EMPTY_LINE_NUMBER" + else if test -n "$FIRST_EMPTY_LINE_NUMBER" + then APPEND_LINE_NUMBER="$FIRST_EMPTY_LINE_NUMBER" + fi fi for V in $( echo "$VALUE" | tac -s ' ' ) do if test -n "$APPEND_LINE_NUMBER" -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org