[yast-commit] r54347 - in /trunk/packager: package/yast2-packager.changes src/modules/SpaceCalculation.ycp
Author: lslezak Date: Tue Dec 30 13:35:58 2008 New Revision: 54347 URL: http://svn.opensuse.org/viewcvs/yast?rev=54347&view=rev Log: - do not display the free space warning in the installation summary for the partitions which are already almost full but nothing is going to be installed there (bnc#259493) Modified: trunk/packager/package/yast2-packager.changes trunk/packager/src/modules/SpaceCalculation.ycp Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=54347&r1=54346&r2=54347&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Tue Dec 30 13:35:58 2008 @@ -4,6 +4,9 @@ - display the Package selector instead of the Pattern selector if there is a resolver problem during installation/update, display the conflicts immeditely (bnc#436721) +- do not display the free space warning in the installation summary + for the partitions which are already almost full but nothing is + going to be installed there (bnc#259493) ------------------------------------------------------------------- Tue Dec 23 09:46:51 CET 2008 - lslezak@suse.cz Modified: trunk/packager/src/modules/SpaceCalculation.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/modules/SpaceCalculation.ycp?rev=54347&r1=54346&r2=54347&view=diff ============================================================================== --- trunk/packager/src/modules/SpaceCalculation.ycp (original) +++ trunk/packager/src/modules/SpaceCalculation.ycp Tue Dec 30 13:35:58 2008 @@ -611,14 +611,16 @@ //$[ "dir" : [ total, usednow, usedfuture ], .... ] foreach (string dir, list sizelist, Pkg::TargetGetDU(), { - y2milestone ("%1: %2", dir, sizelist); + y2milestone ("Disk usage of directory %1: %2", dir, sizelist); integer total = sizelist[0]:0; integer used_future = sizelist[2]:0; + integer used_now = sizelist[1]:0; integer current_free_size = (total - used_future); integer current_free_percent = current_free_size*100/total; - if (current_free_size > 0) + // ignore the partitions which were already full and no files will be installed there (bnc#259493) + if (used_future > used_now && current_free_size > 0) { if (current_free_percent < free_percent && current_free_size < max_unsufficient_free_size ) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn.opensuse.org