Author: lslezak Date: Tue Jan 15 13:48:39 2008 New Revision: 43606 URL: http://svn.opensuse.org/viewcvs/yast?rev=43606&view=rev Log: - Pkg::ImportGPGKey() return boolean (true on success) instead of void Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Keyring.cc trunk/pkg-bindings/src/PkgFunctions.h 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=43606&r1=43605&r2=43606&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Tue Jan 15 13:48:39 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Jan 15 13:47:35 CET 2008 - lslezak@suse.cz + +- Pkg::ImportGPGKey() return boolean (true on success) instead of + void + +------------------------------------------------------------------- Mon Jan 14 16:32:38 CET 2008 - lslezak@suse.cz - 2.16.10 Modified: trunk/pkg-bindings/src/Keyring.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Keyring.cc?rev=43606&r1=43605&r2=43606&view=diff ============================================================================== --- trunk/pkg-bindings/src/Keyring.cc (original) +++ trunk/pkg-bindings/src/Keyring.cc Tue Jan 15 13:48:39 2008 @@ -48,7 +48,7 @@ * * @param string filename Path to the key file * @param boolean trusted Set to true if the key is trusted - * @return void + * @return boolean true on success **/ YCPValue PkgFunctions::ImportGPGKey(const YCPString& filename, const YCPBoolean& trusted) @@ -68,9 +68,10 @@ catch (...) { y2error("Key %s: Import failed", file.c_str()); + return YCPBoolean(false); } - return YCPVoid(); + return YCPBoolean(true); } class GPGMap Modified: trunk/pkg-bindings/src/PkgFunctions.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/PkgFunctions.h?rev=43606&r1=43605&r2=43606&view=diff ============================================================================== --- trunk/pkg-bindings/src/PkgFunctions.h (original) +++ trunk/pkg-bindings/src/PkgFunctions.h Tue Jan 15 13:48:39 2008 @@ -687,7 +687,7 @@ YCPValue IsAnyResolvable(const YCPSymbol& kind_r, const YCPSymbol& status); // keyring related - /* TYPEINFO: void(string,boolean)*/ + /* TYPEINFO: boolean(string,boolean)*/ YCPValue ImportGPGKey(const YCPString& filename, const YCPBoolean& trusted); /* TYPEINFO: list