Author: aschnell Date: Fri Apr 11 19:31:34 2008 New Revision: 46455 URL: http://svn.opensuse.org/viewcvs/yast?rev=46455&view=rev Log: - use sublist Modified: trunk/yast2/library/log/src/LogViewCore.ycp trunk/yast2/yast2.spec.in Modified: trunk/yast2/library/log/src/LogViewCore.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/log/src/LogViewCore.ycp?rev=46455&r1=46454&r2=46455&view=diff ============================================================================== --- trunk/yast2/library/log/src/LogViewCore.ycp (original) +++ trunk/yast2/library/log/src/LogViewCore.ycp Fri Apr 11 19:31:34 2008 @@ -88,14 +88,8 @@ if (max_lines == 0) return; - integer sl = size(lines); - if (sl > max_lines) - { - lines = filter(string l, lines, { - sl = sl - 1; - return sl < max_lines; - }); - } + if (size(lines) - max_lines - 1 > 0) + lines = sublist(lines, size(lines) - max_lines - 1); } Modified: trunk/yast2/yast2.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/yast2.spec.in?rev=46455&r1=46454&r2=46455&view=diff ============================================================================== --- trunk/yast2/yast2.spec.in (original) +++ trunk/yast2/yast2.spec.in Fri Apr 11 19:31:34 2008 @@ -10,8 +10,8 @@ # pre-requires for filling the sysconfig template (sysconfig.yast2) PreReq: %fillup_prereq -# ag_process -Requires: yast2-core >= 2.16.37 +# ag_process, sublist +Requires: yast2-core >= 2.16.46 # Mod_UI Requires: yast2-ycp-ui-bindings >= 2.16.37 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org