[yast-commit] r62715 - in /trunk/pkg-bindings: VERSION package/yast2-pkg-bindings.changes src/Callbacks.cc src/PkgFunctions.h
Author: lslezak Date: Tue Nov 2 15:41:55 2010 New Revision: 62715 URL: http://svn.opensuse.org/viewcvs/yast?rev=62715&view=rev Log: - updated StartPackage callback - added the package name to the arguments (file location is not enough, it's too dificult to get just the name from it in YCP) - 2.20.3 Modified: trunk/pkg-bindings/VERSION trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Callbacks.cc trunk/pkg-bindings/src/PkgFunctions.h Modified: trunk/pkg-bindings/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/VERSION?rev=62715&r1... ============================================================================== --- trunk/pkg-bindings/VERSION (original) +++ trunk/pkg-bindings/VERSION Tue Nov 2 15:41:55 2010 @@ -1 +1 @@ -2.20.2 +2.20.3 Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/package/yast2-pkg-bi... ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Tue Nov 2 15:41:55 2010 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Tue Nov 2 14:30:38 UTC 2010 - lslezak@suse.cz + +- updated StartPackage callback - added the package name to the + arguments (file location is not enough, it's too dificult to get + just the name from it in YCP) +- 2.20.3 + +------------------------------------------------------------------- Mon Oct 25 07:29:56 UTC 2010 - lslezak@suse.cz - ignore just the failed repository during autorefresh, load the Modified: trunk/pkg-bindings/src/Callbacks.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Callbacks.cc?rev... ============================================================================== --- trunk/pkg-bindings/src/Callbacks.cc (original) +++ trunk/pkg-bindings/src/Callbacks.cc Tue Nov 2 15:41:55 2010 @@ -244,6 +244,7 @@ CB callback( ycpcb( YCPCallbacks::CB_StartPackage ) ); if (callback._set) { + callback.addStr(res->name()); callback.addStr(res->location().filename()); callback.addStr(res->summary()); callback.addInt(res->installSize()); @@ -352,6 +353,7 @@ if (callback._set) { callback.addStr(resolvable->name()); callback.addStr(std::string()); + callback.addStr(std::string()); callback.addInt(-1); callback.addBool(true); // is_delete = true callback.evaluate(); Modified: trunk/pkg-bindings/src/PkgFunctions.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/PkgFunctions.h?r... ============================================================================== --- trunk/pkg-bindings/src/PkgFunctions.h (original) +++ trunk/pkg-bindings/src/PkgFunctions.h Tue Nov 2 15:41:55 2010 @@ -267,7 +267,7 @@ // FIXME: create ErrorProvide /* TYPEINFO: void(string(integer,string,string)) */ YCPValue CallbackDoneProvide (const YCPValue& /*nil*/ args); - /* TYPEINFO: void(void(string,string,integer,boolean)) */ + /* TYPEINFO: void(void(string,string,string,integer,boolean)) */ YCPValue CallbackStartPackage (const YCPValue& /*nil*/ args); /* TYPEINFO: void(boolean(integer)) */ YCPValue CallbackProgressPackage (const YCPValue& /*nil*/ args); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn2.opensuse.org