Author: matz Date: Thu May 15 01:52:23 2008 New Revision: 10097 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10097&view=rev Log: Avoid calling the PublicKey(Pathname) ctor uselessly. It is very costly (calling two external programs :-( ). This whole key handling is terrible. Modified: trunk/libzypp/zypp/KeyRing.cc Modified: trunk/libzypp/zypp/KeyRing.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/KeyRing.cc?rev=10097&r1=10096&r2=10097&view=diff ============================================================================== --- trunk/libzypp/zypp/KeyRing.cc (original) +++ trunk/libzypp/zypp/KeyRing.cc Thu May 15 01:52:23 2008 @@ -698,7 +698,7 @@ void KeyRing::importKey( const PublicKey &key, bool trusted ) { - _pimpl->importKey( key.path(), trusted ); + _pimpl->importKey( key, trusted ); } string KeyRing::readSignatureKeyId( const Pathname &signature ) -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org