]> git.saurik.com Git - apt.git/blobdiff - methods/gpgv.cc
* support multiple signatures
[apt.git] / methods / gpgv.cc
index 5cb154f665b825c5abfb896f3035736f401b315f..a114ad797dd0967c19e87d83829d9e11e017d02e 100644 (file)
@@ -247,7 +247,11 @@ bool GPGVMethod::Fetch(FetchItem *Itm)
                errmsg += (*I + "\n");
          }
       }
-      return _error->Error(errmsg.c_str());
+      // this is only fatal if we have no good sigs or if we have at
+      // least one bad signature. good signatures and NoPubKey signatures
+      // happen easily when a file is signed with multiple signatures
+      if(GoodSigners.empty() or !BadSigners.empty())
+        return _error->Error(errmsg.c_str());
    }
       
    // Transfer the modification times