]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/indexcopy.h
fix arguments for MarkInstall so packages are really marked as automatic
[apt.git] / apt-pkg / indexcopy.h
index fa8e9c1562475f4d12a947e6044bb1ed66160a41..6fcd3b8ce4e1a110c9efd9639931d5233de0f78e 100644 (file)
@@ -22,7 +22,7 @@ class FileFd;
 class indexRecords;
 class pkgCdromStatus;
 
 class indexRecords;
 class pkgCdromStatus;
 
-class IndexCopy
+class IndexCopy                                                                /*{{{*/
 {
    protected:
    
 {
    protected:
    
@@ -43,9 +43,10 @@ class IndexCopy
 
    bool CopyPackages(string CDROM,string Name,vector<string> &List,
                     pkgCdromStatus *log);
 
    bool CopyPackages(string CDROM,string Name,vector<string> &List,
                     pkgCdromStatus *log);
+   virtual ~IndexCopy() {};
 };
 };
-
-class PackageCopy : public IndexCopy
+                                                                       /*}}}*/
+class PackageCopy : public IndexCopy                                   /*{{{*/
 {
    protected:
    
 {
    protected:
    
@@ -56,8 +57,8 @@ class PackageCopy : public IndexCopy
    
    public:
 };
    
    public:
 };
-
-class SourceCopy : public IndexCopy
+                                                                       /*}}}*/
+class SourceCopy : public IndexCopy                                    /*{{{*/
 {
    protected:
    
 {
    protected:
    
@@ -68,8 +69,18 @@ class SourceCopy : public IndexCopy
    
    public:
 };
    
    public:
 };
+                                                                       /*}}}*/
+class TranslationsCopy                                                 /*{{{*/
+{
+   protected:
+   pkgTagSection *Section;
 
 
-class SigVerify 
+   public:
+   bool CopyTranslations(string CDROM,string Name,vector<string> &List,
+                        pkgCdromStatus *log);
+};
+                                                                       /*}}}*/
+class SigVerify                                                                /*{{{*/
 {
    bool Verify(string prefix,string file, indexRecords *records);
    bool CopyMetaIndex(string CDROM, string CDName, 
 {
    bool Verify(string prefix,string file, indexRecords *records);
    bool CopyMetaIndex(string CDROM, string CDName, 
@@ -78,6 +89,16 @@ class SigVerify
  public:
    bool CopyAndVerify(string CDROM,string Name,vector<string> &SigList,
                      vector<string> PkgList,vector<string> SrcList);
  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);
+   };
 };
 };
+                                                                       /*}}}*/
 
 #endif
 
 #endif