diff options
author | Michael Vogt <mvo@debian.org> | 2010-06-10 14:01:18 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2010-06-10 14:01:18 +0200 |
commit | e934f8c63aabf4ff94962a4602c143b52b19b3cb (patch) | |
tree | 8f4774cc300c0621cc4532b53eef2a04e5e56b3c /apt-pkg/indexcopy.h | |
parent | 189bb640d2443a5fcaade2ce169429c629ba3148 (diff) | |
parent | 97f4026d93a85838439263d30146c3ad25fef474 (diff) |
merged from david
Diffstat (limited to 'apt-pkg/indexcopy.h')
-rw-r--r-- | apt-pkg/indexcopy.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apt-pkg/indexcopy.h b/apt-pkg/indexcopy.h index 9e5ad4e43..6fcd3b8ce 100644 --- a/apt-pkg/indexcopy.h +++ b/apt-pkg/indexcopy.h @@ -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); + }; }; /*}}}*/ |