[yast-commit] r67919 - in /trunk/storage: package/yast2-storage.changes storage/src/modules/Storage.ycp
Author: fehr Date: Wed Apr 11 19:15:00 2012 New Revision: 67919 URL: http://svn.opensuse.org/viewcvs/yast?rev=67919&view=rev Log: add red error text if there is no root fs in storage propopsal (possible e.g. via autoyast) Modified: trunk/storage/package/yast2-storage.changes trunk/storage/storage/src/modules/Storage.ycp Modified: trunk/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.changes?rev=67919&r1=67918&r2=67919&view=diff ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Wed Apr 11 19:15:00 2012 @@ -1,6 +1,8 @@ ------------------------------------------------------------------- Wed Apr 11 16:23:09 CEST 2012 - fehr@suse.de +- add red error text if there is no root fs in storage propopsal + (possible e.g. via autoyast) - fix bug where ycp forgets changes in Storage::ChangeVolumeProperties after libstorage returns an error Modified: trunk/storage/storage/src/modules/Storage.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Storage.ycp?rev=67919&r1=67918&r2=67919&view=diff ============================================================================== --- trunk/storage/storage/src/modules/Storage.ycp (original) +++ trunk/storage/storage/src/modules/Storage.ycp Wed Apr 11 19:15:00 2012 @@ -4661,6 +4661,7 @@ return ret; } +global map GetEntryForMountpoint(string mp); string save_chtxt = ""; @@ -4669,12 +4670,19 @@ list<string> texts = maplist(map info, GetCommitInfos(), { string text = String::EscapeTags(info[`text]:""); if (info[`destructive]:false) - text = "<font color=red>" + text + "</font>"; + text = HTML::Colorize( text, "red" ); return text; }); string ret = isempty(texts) ? "" : HTML::List(texts); + if( Stage::initial() && isempty(GetEntryForMountpoint( "/" ))) + { + string wroot = _("Nothing assigned as root filesystem!") + HTML::Newline() + + _("Installation will most certainly fail fatally!"); + ret = ret + HTML::Para(HTML::Colorize( wroot, "red" )); + } + if (ret != save_chtxt) { LibStorage::StorageInterface::dumpObjectList(sint); @@ -5129,9 +5137,6 @@ } -global map GetEntryForMountpoint(string mp); - - global list<string> AddPackageList() { list<string> pl = hw_packages; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
fehr@svn2.opensuse.org