revert, causes endless loop
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 20 Oct 2006 09:41:44 +0000 (09:41 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 20 Oct 2006 09:41:44 +0000 (09:41 +0000)
zypp/KeyRing.cc

index fcbc370..25184b1 100644 (file)
@@ -168,8 +168,6 @@ namespace zypp
     callback::SendReport<KeyRingSignals> emitSignal;
     
     importKey( key.path(), trusted ? trustedKeyRing() : generalKeyRing() );
-    if ( trusted )
-      emitSignal->trustedKeyAdded( (const KeyRing &)(*this), key );
   }
 
   void KeyRing::Impl::deleteKey( const std::string &id, bool trusted)
@@ -271,6 +269,7 @@ namespace zypp
   bool KeyRing::Impl::verifyFileSignatureWorkflow( const Pathname &file, const std::string filedesc, const Pathname &signature)
   {
     callback::SendReport<KeyRingReport> report;
+    callback::SendReport<KeyRingSignals> emitSignal;
     MIL << "Going to verify signature for " << file << " with " << signature << std::endl;
 
     // if signature does not exists, ask user if he wants to accept unsigned file.
@@ -315,6 +314,7 @@ namespace zypp
           {
             MIL << "User wants to import key " << id << " " << key.name() << std::endl;
             importKey( key.path(), trustedKeyRing() );
+            emitSignal->trustedKeyAdded( (const KeyRing &)(*this), key );
             which_keyring = trustedKeyRing();
           }
           else