enable key verification only if ZYPP_CHECKSIG env var is set
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Wed, 19 Apr 2006 09:38:34 +0000 (09:38 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Wed, 19 Apr 2006 09:38:34 +0000 (09:38 +0000)
zypp/KeyRing.cc

index 918f1cd..ca62a90 100644 (file)
@@ -225,6 +225,12 @@ namespace zypp
   
   bool KeyRing::Impl::verifyFileSignatureWorkflow( const Pathname &file, const Pathname &signature)
   {
+    if ( ! getenv("ZYPP_CHECKSIG") )
+    {
+      MIL << "Digital signature check disabled. Accepting source." << std::endl; 
+      return true;
+    }
+    
     callback::SendReport<KeyRingReport> report;
     callback::SendReport<KeyRingSignals> emitSignal;
     MIL << "Going to verify signature for " << file << " with " << signature << std::endl;