Mailinglist Archive: yast-commit (213 mails)

< Previous Next >
[yast-commit] r61952 - /trunk/storage/storage/src/modules/StorageSettings.ycp
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Thu, 06 May 2010 09:14:43 -0000
  • Message-id: <E1O9xAJ-0007Ze-Ue@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Thu May 6 11:14:43 2010
New Revision: 61952

URL: http://svn.opensuse.org/viewcvs/yast?rev=61952&view=rev
Log:
- shorted code

Modified:
trunk/storage/storage/src/modules/StorageSettings.ycp

Modified: trunk/storage/storage/src/modules/StorageSettings.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/StorageSettings.ycp?rev=61952&r1=61951&r2=61952&view=diff
==============================================================================
--- trunk/storage/storage/src/modules/StorageSettings.ycp (original)
+++ trunk/storage/storage/src/modules/StorageSettings.ycp Thu May 6 11:14:43
2010
@@ -24,6 +24,7 @@

boolean modified = false;

+
global boolean GetModified()
{
return modified;
@@ -154,7 +155,7 @@
];

return HTML::List(tmp);
- }
+ }


global void Save()
@@ -187,16 +188,7 @@

if (true)
{
- string tmp = "optimal";
- switch( Storage::GetPartitionAlignment() )
- {
- case `align_cylinder:
- tmp = "cylinder";
- break;
- default:
- tmp = "optimal";
- break;
- }
+ string tmp = substring(tostring(Storage::GetPartitionAlignment()),
7);
SCR::Write(.sysconfig.storage.PARTITION_ALIGN, tmp);
}
}

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages