]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexcopy.h
* apt-pkg/depcache.cc:
[apt.git] / apt-pkg / indexcopy.h
index 9e5ad4e43f1cf7243361a433fc19dea819b804d2..6fcd3b8ce4e1a110c9efd9639931d5233de0f78e 100644 (file)
@@ -89,6 +89,15 @@ class SigVerify                                                              /*{{{*/
  public:
    bool CopyAndVerify(string CDROM,string Name,vector<string> &SigList,
                      vector<string> PkgList,vector<string> SrcList);
+
+   /** \brief generates and run the command to verify a file with gpgv */
+   static bool RunGPGV(std::string const &File, std::string const &FileOut,
+                      int const &statusfd, int fd[2]);
+   inline static bool RunGPGV(std::string const &File, std::string const &FileOut,
+                             int const &statusfd = -1) {
+      int fd[2];
+      return RunGPGV(File, FileOut, statusfd, fd);
+   };
 };
                                                                        /*}}}*/