summaryrefslogtreecommitdiff
path: root/apt-pkg/indexcopy.h
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2010-06-09 23:20:26 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2010-06-09 23:20:26 +0200
commitcf440facb498fa0ec70148723b13d6d019758c0e (patch)
tree4467229e2463610cd02dd88dddb2d28ecf8a5fa4 /apt-pkg/indexcopy.h
parentc91d9a630bfe95f152d574a0ca420fde2afc6b2c (diff)
enhance the split out of the gpgv commandline mangling by splitting out
the call completely
Diffstat (limited to 'apt-pkg/indexcopy.h')
-rw-r--r--apt-pkg/indexcopy.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/apt-pkg/indexcopy.h b/apt-pkg/indexcopy.h
index ee6557a3d..6fcd3b8ce 100644
--- a/apt-pkg/indexcopy.h
+++ b/apt-pkg/indexcopy.h
@@ -90,8 +90,14 @@ class SigVerify /*{{{*/
bool CopyAndVerify(string CDROM,string Name,vector<string> &SigList,
vector<string> PkgList,vector<string> SrcList);
- /** \brief generates the command to verify a file with gpgv */
- static std::vector<const char *> GetGPGVCommandLine();
+ /** \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);
+ };
};
/*}}}*/