]> git.saurik.com Git - apt.git/commitdiff
apt-pkg/indexcopy.cc: include trustedFile (if it exists)
authorMichael Vogt <egon@pop>
Fri, 3 Sep 2010 18:49:09 +0000 (20:49 +0200)
committerMichael Vogt <egon@pop>
Fri, 3 Sep 2010 18:49:09 +0000 (20:49 +0200)
apt-pkg/indexcopy.cc

index fb33ed46141c914e84be687e7b532e8e2b795c27..0abbf63de9a997ab4e681f42d0e0a8b86239b44b 100644 (file)
@@ -675,11 +675,9 @@ bool SigVerify::RunGPGV(std::string const &File, std::string const &FileGPG,
 
    std::vector<string> keyrings;
    if (DirectoryExists(trustedPath))
-   {
-       keyrings = GetListOfFilesInDir(trustedPath, "gpg", false, true);
-       if (FileExists(trustedFile) == true)
-          keyrings.push_back(trustedFile);
-   }
+     keyrings = GetListOfFilesInDir(trustedPath, "gpg", false, true);
+   if (FileExists(trustedFile) == true)
+     keyrings.push_back(trustedFile);
 
    std::vector<const char *> Args;
    Args.reserve(30);