[yast-commit] r60593 - in /trunk/update: package/yast2-update.changes src/clients/packages_proposal.ycp src/clients/update_proposal.ycp
Author: locilka
Date: Thu Jan 28 11:12:45 2010
New Revision: 60593
URL: http://svn.opensuse.org/viewcvs/yast?rev=60593&view=rev
Log:
- Counting packages directly in packages proposal (BNC #573482).
Modified:
trunk/update/package/yast2-update.changes
trunk/update/src/clients/packages_proposal.ycp
trunk/update/src/clients/update_proposal.ycp
Modified: trunk/update/package/yast2-update.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/update/package/yast2-update.changes?rev=60593&r1=60592&r2=60593&view=diff
==============================================================================
--- trunk/update/package/yast2-update.changes (original)
+++ trunk/update/package/yast2-update.changes Thu Jan 28 11:12:45 2010
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Thu Jan 28 11:07:00 CET 2010 - locilka@suse.cz
+
+- Counting packages directly in packages proposal (BNC #573482).
+
------------------------------------------------------------------
Wed Jan 13 18:56:03 CET 2010 - kmachalkova@suse.cz
Modified: trunk/update/src/clients/packages_proposal.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/update/src/clients/packages_proposal.ycp?rev=60593&r1=60592&r2=60593&view=diff
==============================================================================
--- trunk/update/src/clients/packages_proposal.ycp (original)
+++ trunk/update/src/clients/packages_proposal.ycp Thu Jan 28 11:12:45 2010
@@ -59,6 +59,46 @@
// SpaceCalculation::ShowPartitionWarning ();
list<string> warning = SpaceCalculation::GetPartitionWarning ();
+ // Count statistics -->
+ // Pkg::GetPackages()
+ // `installed all installed packages
+ // `selected returns all selected but not yet installed packages
+ // `available returns all available packages (from the installation source)
+ // `removed all packages selected for removal
+
+ // recreate the update summary
+ list<string> installed = Pkg::GetPackages (`installed, true);
+ list<string> selected = Pkg::GetPackages (`selected, true);
+ list<string> removed = Pkg::GetPackages (`removed, true);
+ integer cnt_installed = size (installed);
+ integer cnt_selected = size (selected);
+ integer cnt_removed = size (removed);
+ y2milestone ("Selected: %1, Installed: %2, Removed: %3", cnt_selected, cnt_installed, cnt_removed);
+ y2milestone("Removed: %1", removed);
+
+ map
participants (1)
-
locilka@svn.opensuse.org