Author: aschnell
Date: Wed Feb 3 18:42:22 2010
New Revision: 60681
URL: http://svn.opensuse.org/viewcvs/yast?rev=60681&view=rev
Log:
- smarter code
Modified:
trunk/storage/storage/src/modules/Storage.ycp
Modified: trunk/storage/storage/src/modules/Storage.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Storage.ycp?rev=60681&r1=60680&r2=60681&view=diff
==============================================================================
--- trunk/storage/storage/src/modules/Storage.ycp (original)
+++ trunk/storage/storage/src/modules/Storage.ycp Wed Feb 3 18:42:22 2010
@@ -4284,23 +4284,21 @@
{
list<string> pl = hw_packages;
- map tg = GetTargetMap();
+ map target_map = GetTargetMap();
boolean need_lvm = false;
boolean need_nfs = false;
boolean need_quota = false;
boolean need_crypt = false;
- foreach( string k, map e, tg, {
+ foreach (string k, map e, target_map, {
if (e["type"]:`CT_UNKNOWN == `CT_LVM)
need_lvm = true;
if (e["type"]:`CT_UNKNOWN == `CT_NFS)
need_nfs = true;
- if( size(filter( map p, e["partitions"]:[],
- ``(FileSystems::HasQuota(p))))>0 )
+ if (find(map part, e["partitions"]:[], { return FileSystems::HasQuota(part); }) != nil)
need_quota = true;
- if( size(filter( map p, e["partitions"]:[],
- ``(p["enc_type"]:`none != `none)))>0 )
+ if (find(map part, e["partitions"]:[], { return part["enc_type"]:`none != `none; }) != nil)
need_crypt = true;
});
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org