Mailinglist Archive: yast-commit (711 mails)

< Previous Next >
[yast-commit] r48454 - in /trunk/yast2: library/types/src/Integer.ycp yast2.spec.in
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Fri, 20 Jun 2008 13:34:20 -0000
  • Message-id: <20080620133420.CDF8030335@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Fri Jun 20 15:34:20 2008
New Revision: 48454

URL: http://svn.opensuse.org/viewcvs/yast?rev=48454&view=rev
Log:
- use list::reduce

Modified:
trunk/yast2/library/types/src/Integer.ycp
trunk/yast2/yast2.spec.in

Modified: trunk/yast2/library/types/src/Integer.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/types/src/Integer.ycp?rev=48454&r1=48453&r2=48454&view=diff
==============================================================================
--- trunk/yast2/library/types/src/Integer.ycp (original)
+++ trunk/yast2/library/types/src/Integer.ycp Fri Jun 20 15:34:20 2008
@@ -58,8 +58,6 @@
*/
global integer Sum(list<integer> values)
{
- integer sum = 0;
- foreach(integer value, values, { sum = sum + value; });
- return sum;
+ return list::reduce(integer x, integer y, 0, values, { return x + y; });
}
}

Modified: trunk/yast2/yast2.spec.in
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/yast2/yast2.spec.in?rev=48454&r1=48453&r2=48454&view=diff
==============================================================================
--- trunk/yast2/yast2.spec.in (original)
+++ trunk/yast2/yast2.spec.in Fri Jun 20 15:34:20 2008
@@ -11,7 +11,7 @@
PreReq: %fillup_prereq

# y2base foo -S (hello) UI
-Requires: yast2-core >= 2.16.49
+Requires: yast2-core >= 2.17.1
# Mod_UI
Requires: yast2-ycp-ui-bindings >= 2.16.44


--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages