[yast-commit] r62369 - in /trunk/storage: package/yast2-storage.changes storage/src/include/ep-hd.ycp
Author: aschnell Date: Fri Aug 6 15:49:37 2010 New Revision: 62369 URL: http://svn.opensuse.org/viewcvs/yast?rev=62369&view=rev Log: - hide button "Create New Partition Table" for DASDs Modified: trunk/storage/package/yast2-storage.changes trunk/storage/storage/src/include/ep-hd.ycp Modified: trunk/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=62369&r1=62368&r2=62369&view=diff ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Fri Aug 6 15:49:37 2010 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Fri Aug 06 15:48:27 CEST 2010 - aschnell@suse.de + +- hide button "Create New Partition Table" for DASDs + +------------------------------------------------------------------- Tue Aug 03 12:45:44 CEST 2010 - aschnell@suse.de - increased proposed size for /boot to 150 MB (bnc #627288) Modified: trunk/storage/storage/src/include/ep-hd.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-hd.ycp?rev=62369&r1=62368&r2=62369&view=diff ============================================================================== --- trunk/storage/storage/src/include/ep-hd.ycp (original) +++ trunk/storage/storage/src/include/ep-hd.ycp Fri Aug 6 15:49:37 2010 @@ -295,16 +295,22 @@ term table_header = StorageFields::TableHeader(fields); list<term> table_contents = StorageFields::TableContents(fields, target_map, Predicate); - list<term> expert_cmds = [ - `item(`id(`create_partition_table), - // menu entry text - _("Create New Partition Table")), - `item(`id(`clone_disk), - // menu entry text - _("Clone This Disk")) - ]; + list<term> expert_cmds = []; - if (Arch::s390() && search(device, "/dev/dasd") == 0) + if (!String::StartsWith(device, "/dev/dasd")) + { + expert_cmds = add(expert_cmds, + `item(`id(`create_partition_table), + // menu entry text + _("Create New Partition Table"))); + } + + expert_cmds = add(expert_cmds, + `item(`id(`clone_disk), + // menu entry text + _("Clone This Disk"))); + + if (String::StartsWith(device, "/dev/dasd")) { expert_cmds = add(expert_cmds, `item(`id(`dasdfmt), -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org