Author: locilka
Date: Thu Jan 28 11:13:46 2010
New Revision: 60595
URL: http://svn.opensuse.org/viewcvs/yast?rev=60595&view=rev
Log:
- Counting packages directly in packages proposal (BNC #573482).
- 2.17.18.1
Modified:
branches/SuSE-Code-11-Branch/update/VERSION
branches/SuSE-Code-11-Branch/update/package/yast2-update.changes
branches/SuSE-Code-11-Branch/update/src/clients/packages_proposal.ycp
branches/SuSE-Code-11-Branch/update/src/clients/update_proposal.ycp
Modified: branches/SuSE-Code-11-Branch/update/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/update/VERSION?rev=60595&r1=60594&r2=60595&view=diff
==============================================================================
--- branches/SuSE-Code-11-Branch/update/VERSION (original)
+++ branches/SuSE-Code-11-Branch/update/VERSION Thu Jan 28 11:13:46 2010
@@ -1 +1 @@
-2.17.18
+2.17.18.1
Modified: branches/SuSE-Code-11-Branch/update/package/yast2-update.changes
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/update/package/yast2-update.changes?rev=60595&r1=60594&r2=60595&view=diff
==============================================================================
--- branches/SuSE-Code-11-Branch/update/package/yast2-update.changes (original)
+++ branches/SuSE-Code-11-Branch/update/package/yast2-update.changes Thu Jan 28 11:13:46 2010
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu Jan 28 11:07:00 CET 2010 - locilka@suse.cz
+
+- Counting packages directly in packages proposal (BNC #573482).
+- 2.17.18.1
+
+-------------------------------------------------------------------
Mon Jan 19 16:17:31 CET 2009 - locilka@suse.cz
- Added possibility to manually choose a /var partition if YaST
Modified: branches/SuSE-Code-11-Branch/update/src/clients/packages_proposal.ycp
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/update/src/clients/packages_proposal.ycp?rev=60595&r1=60594&r2=60595&view=diff
==============================================================================
--- branches/SuSE-Code-11-Branch/update/src/clients/packages_proposal.ycp (original)
+++ branches/SuSE-Code-11-Branch/update/src/clients/packages_proposal.ycp Thu Jan 28 11:13:46 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