Author: fehr Date: Tue Jan 10 19:00:30 2012 New Revision: 67138 URL: http://svn.opensuse.org/viewcvs/yast?rev=67138&view=rev Log: fix parsing problem with old style size values (e.g. 10G instead of 10GB) (bnc#740560) Modified: branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes branches/SuSE-Code-11-SP2-Branch/storage/storage/src/modules/Storage.ycp Modified: branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes?rev=67138&r1=67137&r2=67138&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes Tue Jan 10 19:00:30 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 17:15:30 CET 2012 - fehr@suse.de - fix missing /boot partition in proposal (bnc#739091) Modified: branches/SuSE-Code-11-SP2-Branch/storage/storage/src/modules/Storage.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/storage/src/modules/Storage.ycp?rev=67138&r1=67137&r2=67138&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/storage/storage/src/modules/Storage.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/storage/storage/src/modules/Storage.ycp Tue Jan 10 19:00:30 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