Mailinglist Archive: yast-commit (459 mails)

< Previous Next >
[yast-commit] r60681 - /trunk/storage/storage/src/modules/Storage.ycp
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Wed, 03 Feb 2010 17:42:23 -0000
  • Message-id: <E1NcjF9-0005fN-4l@xxxxxxxxxxxxxxxx>
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<string,map> tg = GetTargetMap();
+ map<string, 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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages