Mailinglist Archive: yast-commit (396 mails)

< Previous Next >
[yast-commit] r65295 - /trunk/storage/storage/src/include/custom_part_dialogs.ycp
Author: fehr
Date: Wed Aug 10 11:17:22 2011
New Revision: 65295

URL: http://svn.opensuse.org/viewcvs/yast?rev=65295&view=rev
Log:
improvements after code reading

Modified:
trunk/storage/storage/src/include/custom_part_dialogs.ycp

Modified: trunk/storage/storage/src/include/custom_part_dialogs.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/custom_part_dialogs.ycp?rev=65295&r1=65294&r2=65295&view=diff
==============================================================================
--- trunk/storage/storage/src/include/custom_part_dialogs.ycp (original)
+++ trunk/storage/storage/src/include/custom_part_dialogs.ycp Wed Aug 10
11:17:22 2011
@@ -1351,8 +1351,7 @@
if( p["name"]:""==pth )
{
p["delete"] = true;
- if( haskey( p, "create" ))
- p = remove( p, "create" );
+ p = remove( p, "create" );
}
return p;
});
@@ -1369,7 +1368,7 @@
y2milestone( "SubvolHandling names:%1", SubvolNames( new ) );
if( pth==nil || size(pth)==0 )
Popup::Message(_("Empty subvolume name not allowed."));
- else if( size(filter( string s, SubvolNames( new ), ``(s==pth)))>0 )
+ else if( contains( SubvolNames( new ), pth ))
Popup::Message(sformat(_("Subvolume name %1 already
exists."),pth));
else
{

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

< Previous Next >
This Thread
  • No further messages