Author: aschnell
Date: Thu Jan 7 14:39:06 2010
New Revision: 60267
URL: http://svn.opensuse.org/viewcvs/yast?rev=60267&view=rev
Log:
- added more type information
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=60267&r1=60266&r2=60267&view=diff
==============================================================================
--- trunk/storage/storage/src/modules/Storage.ycp (original)
+++ trunk/storage/storage/src/modules/Storage.ycp Thu Jan 7 14:39:06 2010
@@ -4055,9 +4055,8 @@
* @param boolean foreign_os
* @return list of primary partitions
*/
-global define list GetPrimPartitions( map targets,
- boolean foreign_os )
- ``{
+list<map> GetPrimPartitions(map targets, boolean foreign_os)
+ {
list<map> ret = [];
map entry = $[];
string text = "";
@@ -4178,9 +4177,10 @@
return( ret );
}
-global define list GetWinPrimPartitions( map targets )
- ``{
- list ret = GetPrimPartitions( targets, true );
+
+global list<map> GetWinPrimPartitions(map targets)
+ {
+ list<map> ret = GetPrimPartitions( targets, true );
y2milestone( "GetWinPrimPartitions ret %1", ret );
return( ret );
}
@@ -4288,13 +4288,13 @@
}
-global define list GetForeignPrimary()
- ``{
- list ret = [];
+
+global list<string> GetForeignPrimary()
+ {
+ list<string> ret = [];
if( Arch::i386 () || Arch::ia64 () || Arch::x86_64 () )
{
- foreach(map e, (list<map>)GetPrimPartitions( GetTargetMap(), false ),
- ``{
+ foreach(map e, GetPrimPartitions( GetTargetMap(), false ), {
ret = add( ret, sformat( "%1 %2", e["device"]:"", e["string"]:"" ));
});
}
@@ -4302,6 +4302,7 @@
return( ret );
}
+
/**
* Returns whether a partition is resizable
*
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org