Author: aschnell Date: Fri Apr 16 14:06:02 2010 New Revision: 61730 URL: http://svn.opensuse.org/viewcvs/yast?rev=61730&view=rev Log: - added predicate PredicateMountpoint Modified: trunk/storage/storage/src/modules/StorageFields.ycp Modified: trunk/storage/storage/src/modules/StorageFields.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/StorageFields.ycp?rev=61730&r1=61729&r2=61730&view=diff ============================================================================== --- trunk/storage/storage/src/modules/StorageFields.ycp (original) +++ trunk/storage/storage/src/modules/StorageFields.ycp Fri Apr 16 14:06:02 2010 @@ -1076,6 +1076,28 @@ /** + * Predicate function for Table and TableContents. + */ + global symbol PredicateMountpoint(map disk, map partition) + { + if (partition == nil) + { + if (!isempty(disk["mount"]:"")) + return `showandfollow; + else + return `follow; + } + else + { + if (!isempty(partition["mount"]:"")) + return `show; + else + return `ignore; + } + } + + + /** * The predicate function determines whether the disk/partition is * included. The predicate function takes two arguments, disk and * partition. For disks predicate is called with the partitions set to -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org