[yast-commit] r45050 - in /trunk/pkg-bindings: VERSION package/yast2-pkg-bindings.changes src/Package.cc
Author: lslezak Date: Wed Feb 27 09:07:05 2008 New Revision: 45050 URL: http://svn.opensuse.org/viewcvs/yast?rev=45050&view=rev Log: - update - 'keep_intalled_patches' and 'delete_unmaintained' options were removed from the libzypp API - 2.16.15 Modified: trunk/pkg-bindings/VERSION trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Package.cc Modified: trunk/pkg-bindings/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/VERSION?rev=45050&r1=45049&r2=45050&view=diff ============================================================================== --- trunk/pkg-bindings/VERSION (original) +++ trunk/pkg-bindings/VERSION Wed Feb 27 09:07:05 2008 @@ -1 +1 @@ -2.16.14 +2.16.15 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=45050&r1=45049&r2=45050&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Wed Feb 27 09:07:05 2008 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Wed Feb 27 09:04:14 CET 2008 - lslezak@suse.cz + +- update - 'keep_intalled_patches' and 'delete_unmaintained' options + were removed from the libzypp API +- 2.16.15 + +------------------------------------------------------------------- Fri Feb 22 15:38:40 CET 2008 - lslezak@suse.cz - Pkg::ResolvablePreselectPatches(): Properly select patches for Modified: trunk/pkg-bindings/src/Package.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Package.cc?rev=45050&r1=45049&r2=45050&view=diff ============================================================================== --- trunk/pkg-bindings/src/Package.cc (original) +++ trunk/pkg-bindings/src/Package.cc Wed Feb 27 09:07:05 2008 @@ -1631,15 +1631,7 @@ YCPValue delete_unmaintained = options->value(YCPString("delete_unmaintained")); if(!delete_unmaintained.isNull()) { - if (delete_unmaintained->isBoolean()) - { - stats.delete_unmaintained = delete_unmaintained->asBoolean()->value(); - } - else - { - y2error("unexpected type of 'delete_unmaintained' key: %s, must be a boolean!", - Type::vt2type(delete_unmaintained->valuetype())->toString().c_str()); - } + y2error("'delete_unmaintained' flag is obsoleted and should not be used, check the code!"); } YCPValue silent_downgrades = options->value(YCPString("silent_downgrades")); @@ -1659,15 +1651,7 @@ YCPValue keep_installed_patches = options->value(YCPString("keep_installed_patches")); if(!keep_installed_patches.isNull()) { - if (keep_installed_patches->isBoolean()) - { - stats.keep_installed_patches = keep_installed_patches->asBoolean()->value(); - } - else - { - y2error("unexpected type of 'keep_installed_patches' key: %s, must be a boolean!", - Type::vt2type(keep_installed_patches->valuetype())->toString().c_str()); - } + y2error("'keep_installed_patches' flag is obsoleted and should not be used, check the code!"); } @@ -1707,7 +1691,6 @@ // option set for doUpdate, dropped packages count as ToDelete // or ToKeep. data->add( YCPSymbol("SumDropped"), YCPInteger( stats.chk_dropped ) ); - data->add( YCPSymbol("DeleteUnmaintained"),YCPInteger( stats.delete_unmaintained ) ); // Total mumber of installed packages processed data->add( YCPSymbol("SumProcessed"), YCPInteger( stats.chk_installed_total ) ); -- 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