Author: aschnell Date: Fri Dec 19 15:53:38 2008 New Revision: 54301 URL: http://svn.opensuse.org/viewcvs/yast?rev=54301&view=rev Log: - use Region::End() Modified: trunk/storage/storage/src/include/custom_part_check_generated.ycp Modified: trunk/storage/storage/src/include/custom_part_check_generated.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/custom_part_check_generated.ycp?rev=54301&r1=54300&r2=54301&view=diff ============================================================================== --- trunk/storage/storage/src/include/custom_part_check_generated.ycp (original) +++ trunk/storage/storage/src/include/custom_part_check_generated.ycp Fri Dec 19 15:53:38 2008 @@ -29,6 +29,7 @@ import "AutoinstData"; import "FileSystems"; import "Stage"; + import "Region"; include "partitioning/custom_part_helptexts.ycp"; @@ -100,7 +101,7 @@ } root_found = true; dmraid_root = diskinfo["type"]:`CT_UNKNOWN == `CT_DMRAID; - root_end = part["region",0]:0 + part["region",1]:1-1; + root_end = Region::End(part["region"]:[]); if( !contains( [ `primary, `logical ], part["type"]:`unknown )) { // root_end does not have anything to do with physical cylinders @@ -125,7 +126,7 @@ boot_found = true; if( diskinfo["type"]:`CT_UNKNOWN==`CT_DISK ) { - boot_end = part["region",0]:0 + part["region",1]:1-1; + boot_end = Region::End(part["region"]:[]); } else { @@ -143,14 +144,14 @@ (fsid == Partitions::fsid_prep_chrp_boot || fsid==6) ) { boot_found = true; - boot_end = part["region",0]:0 + part["region",1]:1-1; + boot_end = Region::End(part["region"]:[]); boot_fs = part["used_fs"]:`unknown; boot_size_k = part["size_k"]:0; } else if( Arch::board_mac() && part["used_fs"]:`unknown==`hfs ) { boot_found = true; - boot_end = part["region",0]:0 + part["region",1]:1-1; + boot_end = Region::End(part["region"]:[]); boot_fs = part["used_fs"]:`unknown; boot_size_k = part["size_k"]:0; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org