[yast-commit] r67139 - in /trunk/storage: package/yast2-storage.changes storage/src/modules/Storage.ycp
Author: fehr Date: Tue Jan 10 19:01:40 2012 New Revision: 67139 URL: http://svn.opensuse.org/viewcvs/yast?rev=67139&view=rev Log: fix parsing problem with old style size values (e.g. 10G instead of 10GB) (bnc#740560) 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.cha... ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Tue Jan 10 19:01:40 2012 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Jan 10 18:59:52 CET 2012 - fehr@suse.de + +- fix parsing problem with old style size values (e.g. 10G instead + of 10GB) (bnc#740560) + +------------------------------------------------------------------- Mon Jan 9 16:39:46 CET 2012 - fehr@suse.de - fix missing /boot partition in proposal (bnc#739091) Modified: trunk/storage/storage/src/modules/Storage.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/modules/Stora... ============================================================================== --- trunk/storage/storage/src/modules/Storage.ycp (original) +++ trunk/storage/storage/src/modules/Storage.ycp Tue Jan 10 19:01:40 2012 @@ -397,7 +397,11 @@ { integer bytes = 0; if (!LibStorage::humanStringToByte(str, true, bytes)) - y2error("cannot parse %1", str); + { + string ts = str+"b"; + if( !LibStorage::humanStringToByte(ts, true, bytes)) + y2error("cannot parse %1 or %2", str, ts); + } return bytes; } -- 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