Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] r57937 - in /trunk/pkg-bindings: VERSION package/yast2-pkg-bindings.changes src/Package.cc yast2-pkg-bindings.spec.in
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Wed, 08 Jul 2009 13:14:12 -0000
  • Message-id: <E1MOWyS-0004fw-G6@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Wed Jul 8 15:14:12 2009
New Revision: 57937

URL: http://svn.opensuse.org/viewcvs/yast?rev=57937&view=rev
Log:
Remove references to deprecated UpgradeStatistics.

Modified:
trunk/pkg-bindings/VERSION
trunk/pkg-bindings/package/yast2-pkg-bindings.changes
trunk/pkg-bindings/src/Package.cc
trunk/pkg-bindings/yast2-pkg-bindings.spec.in

Modified: trunk/pkg-bindings/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/VERSION?rev=57937&r1=57936&r2=57937&view=diff
==============================================================================
--- trunk/pkg-bindings/VERSION (original)
+++ trunk/pkg-bindings/VERSION Wed Jul 8 15:14:12 2009
@@ -1 +1 @@
-2.18.7
+2.18.8

Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/package/yast2-pkg-bindings.changes?rev=57937&r1=57936&r2=57937&view=diff
==============================================================================
--- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original)
+++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Wed Jul 8 15:14:12
2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Wed Jul 8 15:09:09 CEST 2009 - ma@xxxxxxx
+
+- Remove references to deprecated UpgradeStatistics.
+- 2.18.8
+
+-------------------------------------------------------------------
Tue Jun 16 15:50:59 CEST 2009 - lslezak@xxxxxxx

- Do not call RefreshStarted callback when refresh is not needed,

Modified: trunk/pkg-bindings/src/Package.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Package.cc?rev=57937&r1=57936&r2=57937&view=diff
==============================================================================
--- trunk/pkg-bindings/src/Package.cc (original)
+++ trunk/pkg-bindings/src/Package.cc Wed Jul 8 15:14:12 2009
@@ -39,7 +39,6 @@
#include <zypp/ResStatus.h>

#include <zypp/ResPool.h>
-#include <zypp/UpgradeStatistics.h>
#include <zypp/target/rpm/RpmDb.h>
#include <zypp/target/TargetException.h>
#include <zypp/ZYppCommit.h>
@@ -1503,58 +1502,14 @@
* @builtin PkgUpdateAll
* @param map<string,any> update_options Options for the solver. All
parameters are optional,
* if a parameter is missing the default value from the package manager
(libzypp) is used.
- * Currently supported options: <tt>$["silent_downgrades":boolean] </tt>
+ * Currently supported options: <tt>NONE</tt>
*
* @short Update installed packages
* @description
- * Mark all packages for installation which are installed and have
- * an available candidate for update.
+ * Perform a distribution upgrade. This function solves
+ * dependencies.
*
- * This will mark packages for installation *and* for deletion (if a
- * package provides/obsoletes another package)
- *
- * This function does not solve dependencies.
- *
- * Symbols and integer values returned:
- *
- * <b>ProblemListSze</b>: Number of taboo and dropped packages found.
- *
- * <b>DeleteUnmaintained</b>: Whether delete_unmaintained arg was true or
false.
- * Dependent on this, <b>SumDropped</b> below either denotes packages to delete
- * (if true) or packages to keep (if false).
- *
- * <b>SumProcessed</b>: TOTAL number of installed packages we processed.
- *
- * <b>SumToInstall</b>: TOTAL number of packages now tagged as to install.
- * Summs <b>Ipreselected</b>, <b>Iupdate</b>, <b>Idowngrade</b>,
<b>Ireplaced</b>.
- *
- * <b>Ipreselected</b>: Packages which were already taged to install.
- *
- * <b>Iupdate</b>: Packages set to install as update to a newer version.
- *
- * <b>Idowngrade</b>: Packages set to install performing a version downgrade.
- *
- * <b>Ireplaced</b>: Packages set to install as they replace an installed
package.
- *
- * <b>SumToDelete</b>: TOTAL number of packages now tagged as to delete.
- * Summs <b>Dpreselected</b>, <b>SumDropped</b> if <b>DeleteUnmaintained</b>
- * was set.
- *
- * <b>Dpreselected</b>: Packages which were already taged to delete.
- *
- * <b>SumToKeep</b>: TOTAL number of packages which remain unchanged.
- * Summs <b>Ktaboo</b>, <b>Knewer</b>, <b>Ksame</b>, <b>SumDropped</b>
- * if <b>DeleteUnmaintained</b> was not set.
- *
- * <b>Ktaboo</b>: Packages which are set taboo.
- *
- * <b>Knewer</b>: Packages kept because only older versions are available.
- *
- * <b>Ksame</b>: Packages kept because they are up to date.
- *
- * <b>SumDropped</b>: TOTAL number of dropped packages found. Dependent
- * on the delete_unmaintained arg, they are either tagged as to delete or
- * remain unchanged.
+ * Symbols and integer values returned: <tt>NONE</tt>
*
* @return map<symbol,integer> summary of the update
*/
@@ -1562,7 +1517,14 @@
YCPValue
PkgFunctions::PkgUpdateAll (const YCPMap& options)
{
- zypp::UpgradeStatistics stats;
+ {
+ // NOTE(ma): Since libzypp switched to use libsatsolver for distribution
upgrade,
+ // there are no more in-/output arguments to doUpgrade. The statistics
previously
+ // returned from resolver()->doUpgrade(stats) via the UpgradeStatistics
argument
+ // no longer exist. If some feedback is required here, libzypp could offer
sort of
+ // transaction summary. Such a summary woulfd not be tied to the
distribution upgrade,
+ // but would be available all the time and reflect the status of the zypp
pool.
+

YCPValue delete_unmaintained =
options->value(YCPString("delete_unmaintained"));
if(!delete_unmaintained.isNull())
@@ -1573,15 +1535,7 @@
YCPValue silent_downgrades =
options->value(YCPString("silent_downgrades"));
if(!silent_downgrades.isNull())
{
- if (silent_downgrades->isBoolean())
- {
- stats.silent_downgrades = silent_downgrades->asBoolean()->value();
- }
- else
- {
- y2error("unexpected type of 'silent_downgrades' key: %s, must be a
boolean!",
-
Type::vt2type(silent_downgrades->valuetype())->toString().c_str());
- }
+ y2error("'silent_downgrades' flag is obsoleted and should not be used,
check the code!");
}

YCPValue keep_installed_patches =
options->value(YCPString("keep_installed_patches"));
@@ -1596,40 +1550,10 @@
try
{
// solve upgrade, get statistics
- zypp_ptr()->resolver()->doUpgrade(stats);
+ zypp_ptr()->resolver()->doUpgrade();
}
catch (...)
- {
- return data;
- }
-
- data->add( YCPSymbol("ProblemListSze"), YCPInteger(stats.chk_is_taboo +
stats.chk_dropped));
-
- // packages to install; sum and details
- data->add( YCPSymbol("SumToInstall"), YCPInteger( stats.totalToInstall() )
);
- data->add( YCPSymbol("Ipreselected"), YCPInteger( stats.chk_already_toins
) );
- data->add( YCPSymbol("Iupdate"), YCPInteger( stats.chk_to_update ) );
- data->add( YCPSymbol("Idowngrade"), YCPInteger( stats.chk_to_downgrade )
);
- data->add( YCPSymbol("Ireplaced"), YCPInteger( stats.chk_replaced
- +
stats.chk_replaced_guessed
- + stats.chk_add_split ) );
- // packages to delete; sum and details (! see dropped packages)
- data->add( YCPSymbol("SumToDelete"), YCPInteger( stats.totalToDelete() )
);
- data->add( YCPSymbol("Dpreselected"), YCPInteger( stats.chk_already_todel
) );
-
- // packages to delete; sum and details (! see dropped packages)
- data->add( YCPSymbol("SumToKeep"), YCPInteger( stats.totalToKeep() ) );
- data->add( YCPSymbol("Ktaboo"), YCPInteger( stats.chk_is_taboo ) );
- data->add( YCPSymbol("Knewer"), YCPInteger(
stats.chk_to_keep_downgrade ) );
- data->add( YCPSymbol("Ksame"), YCPInteger(
stats.chk_to_keep_installed ) );
-
- // dropped packages; dependent on the delete_unmaintained
- // option set for doUpdate, dropped packages count as ToDelete
- // or ToKeep.
- data->add( YCPSymbol("SumDropped"), YCPInteger( stats.chk_dropped ) );
-
- // Total mumber of installed packages processed
- data->add( YCPSymbol("SumProcessed"), YCPInteger(
stats.chk_installed_total ) );
+ {}

return data;
}

Modified: trunk/pkg-bindings/yast2-pkg-bindings.spec.in
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/yast2-pkg-bindings.spec.in?rev=57937&r1=57936&r2=57937&view=diff
==============================================================================
--- trunk/pkg-bindings/yast2-pkg-bindings.spec.in (original)
+++ trunk/pkg-bindings/yast2-pkg-bindings.spec.in Wed Jul 8 15:14:12 2009
@@ -4,7 +4,7 @@
Group: System/YaST
License: GPL v2 or later
BuildRequires: blocxx-devel docbook-xsl-stylesheets doxygen gcc-c++
libgcrypt-devel libxcrypt-devel libxslt perl-XML-Writer sgml-skel
yast2-core-devel yast2-devtools
-BuildRequires: libzypp-devel >= 6.6.0
+BuildRequires: libzypp-devel >= 6.10.0

# new GPG callbacks
Requires: libzypp >= 6.6.0

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages