Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r55028 - in /trunk/pkg-bindings: package/yast2-pkg-bindings.changes src/Callbacks.cc
  • From: lslezak@xxxxxxxxxxxxxxxx
  • Date: Mon, 26 Jan 2009 15:28:48 -0000
  • Message-id: <E1LRTOK-0002Ir-Bp@xxxxxxxxxxxxxxxx>
Author: lslezak
Date: Mon Jan 26 16:28:48 2009
New Revision: 55028

URL: http://svn.opensuse.org/viewcvs/yast?rev=55028&view=rev
Log:
- implemented RemoveResolvableReport::problem() callback
(bnc#465641)

Modified:
trunk/pkg-bindings/package/yast2-pkg-bindings.changes
trunk/pkg-bindings/src/Callbacks.cc

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=55028&r1=55027&r2=55028&view=diff
==============================================================================
--- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original)
+++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Mon Jan 26 16:28:48
2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Mon Jan 26 16:26:46 CET 2009 - lslezak@xxxxxxx
+
+- implemented RemoveResolvableReport::problem() callback
+ (bnc#465641)
+
+-------------------------------------------------------------------
Fri Jan 16 19:55:14 CET 2009 - lslezak@xxxxxxx

- 2.18.1

Modified: trunk/pkg-bindings/src/Callbacks.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Callbacks.cc?rev=55028&r1=55027&r2=55028&view=diff
==============================================================================
--- trunk/pkg-bindings/src/Callbacks.cc (original)
+++ trunk/pkg-bindings/src/Callbacks.cc Mon Jan 26 16:28:48 2009
@@ -438,6 +438,33 @@
return zypp::target::rpm::RemoveResolvableReport::progress(value,
resolvable);
}

+ virtual Action problem(
+ zypp::Resolvable::constPtr resolvable
+ , zypp::target::rpm::RemoveResolvableReport::Error error
+ , const std::string &description
+ )
+ {
+ CB callback( ycpcb( YCPCallbacks::CB_DonePackage) );
+ if (callback._set) {
+ callback.addInt( error );
+ callback.addStr( description );
+
+ std::string ret = callback.evaluateStr();
+
+ // "R" = retry
+ if (ret == "R") return
zypp::target::rpm::RemoveResolvableReport::RETRY;
+
+ // "C" = cancel
+ if (ret == "C") return
zypp::target::rpm::RemoveResolvableReport::ABORT;
+
+ // otherwise ignore
+ return zypp::target::rpm::RemoveResolvableReport::IGNORE;
+ }
+
+ return zypp::target::rpm::RemoveResolvableReport::problem
+ (resolvable, error, description);
+ }
+
virtual void finish(zypp::Resolvable::constPtr resolvable,
zypp::target::rpm::RemoveResolvableReport::Error error, const std::string
&reason)
{
CB callback( ycpcb( YCPCallbacks::CB_DonePackage) );

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

< Previous Next >
This Thread
  • No further messages