Author: lslezak Date: Tue Nov 1 14:29:00 2011 New Revision: 66652 URL: http://svn.opensuse.org/viewcvs/yast?rev=66652&view=rev Log: - fixed free space check for very small partitions (~15MB), do not report insufficient disk space when there is actually nothing to install on it (bnc#724894) - 2.17.97 Modified: branches/SuSE-Code-11-SP2-Branch/packager/VERSION branches/SuSE-Code-11-SP2-Branch/packager/package/yast2-packager.changes branches/SuSE-Code-11-SP2-Branch/packager/src/modules/SpaceCalculation.ycp Modified: branches/SuSE-Code-11-SP2-Branch/packager/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/packager/VERSION?rev=66652&r1=66651&r2=66652&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/packager/VERSION (original) +++ branches/SuSE-Code-11-SP2-Branch/packager/VERSION Tue Nov 1 14:29:00 2011 @@ -1 +1 @@ -2.17.96 +2.17.97 Modified: branches/SuSE-Code-11-SP2-Branch/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/packager/package/yast2-packager.changes?rev=66652&r1=66651&r2=66652&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/packager/package/yast2-packager.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/packager/package/yast2-packager.changes Tue Nov 1 14:29:00 2011 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Tue Nov 1 13:21:19 UTC 2011 - lslezak@suse.cz + +- fixed free space check for very small partitions (~15MB), do not + report insufficient disk space when there is actually nothing + to install on it (bnc#724894) +- 2.17.97 + +------------------------------------------------------------------- Mon Oct 31 17:46:14 UTC 2011 - lslezak@suse.cz - copy the metadata cache after saving repository setup to not Modified: branches/SuSE-Code-11-SP2-Branch/packager/src/modules/SpaceCalculation.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/packager/src/modules/SpaceCalculation.ycp?rev=66652&r1=66651&r2=66652&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/packager/src/modules/SpaceCalculation.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/packager/src/modules/SpaceCalculation.ycp Tue Nov 1 14:29:00 2011 @@ -605,6 +605,13 @@ free_size = part["size_k"]:0 * 1024; free_size = free_size - min_spare; + // free_size smaller than min_spare, fix negative value + if (free_size < 0) + { + y2milestone("Fixing free size: %1 to 0", free_size); + free_size = 0; + } + integer used = 0; if (! (part["create"]:false || part["format"]:false)) { @@ -697,6 +704,13 @@ // decrease free size free_size = free_size - used; + + // check for underflow + if (free_size < 0) + { + y2milestone("Fixing free size: %1 to 0", free_size); + free_size = 0; + } } // convert into kB for TargetInitDU -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org